The bot for the Telegram chat "FC Sempark".
- CHAT_ID
- TOKEN
- DATABASE_PATH
- Create Makefile
- Move a schedule settings to the Google Sheets and add google sheets loader.
- Move all texts to the settings struct and a settings storage.
docker build --rm -t <image_name>:<image_tag> .
- Create directory for database file
sudo mkdir /usr/local/_data
- Set env variables
export TOKEN=<your bot token>
export CHAT_ID=<chat id>
- Build image
make build
- Run bot daemon
make run-daemon
- Add to crontab schedule when we want to create polls
# /etc/crontab
0 8 * * sun,thu