Daily Bot
This is a simple bot to remind Telegram groups about it's daily standup. It runs from monday to friday, but can run on different days too if you'd like.
Setting up
I'm assuming you already have Python 3.6 and a bot token (if you don't, here's a good link)
Firstly, you have to set the following variables to your environment:
NAME
- the bot's name;TOKEN
- the bot's token;CHAT_ID
- the chat with which the bot will send the daily messagesHOUR
- the hour that the bot will send the daily messageMINUTE
- the minute of the hour mentioned above that the bot will send the daily messagePORT
- only used if you're usingngrok
orHeroku
(and Heroku fills this variable automatically)
Now, you might be asking, how do I set variables? Well, it's a simple command (for linux, of course),
see below for CHAT_ID
.
export CHAT_ID=-98364829374
After you set all variables, create a virtual environment (or not) and install all dependencies with
pip install -r requirements.txt
And run the bot script
python dailybot.py