Skip to content

A Telegram bot written in Rust whose original purpose is mainly to remind their 5 roommates when to take out the trash.

Notifications You must be signed in to change notification settings

nfelber/Caseus-Foratus-Helveticus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cáseus Forātus Helvéticus

A Telegram bot written in Rust whose original purpose is mainly to remind their 5 roommates when to take out the trash.

Named after the Neo-Latin word for Gruyère according to the Lexicon Recentis Latinitatis.

Setup & run

Create a file called teloxide_token.txt with your bot's Telegram API token.

$ echo "<API Token>" > teloxide_token.txt

Then edit the id of the chat the bot should send to in compose.yaml.

#   ...
    entrypoint: [ '/bin/bash', '-c', 'export TELOXIDE_TOKEN=$$(cat /run/secrets/teloxide_token) ; ./caseus-foratus-helveticus "<Chat id here>"' ]

You can find the id of a chat by adding the bot to the chat and then querying https://api.telegram.org/bot<API Token>/getUpdates (using a for example a browser).

Feel free to edit the reminder dates in the dates folder (this can be done while the bot is running).

Finally, start the bot using docker-compose:

$ docker-compose up -d

About

A Telegram bot written in Rust whose original purpose is mainly to remind their 5 roommates when to take out the trash.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published