repository
0.0.0-20241017073237-16fe5c17626d
Repository: https://github.com/alitvinenko/fcsempark_bot.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
fcsempark_bot
The bot for the Telegram chat "FC Sempark".
Required env variables
- CHAT_ID
- TOKEN
- DATABASE_PATH
TODO
- 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
docker build --rm -t <image_name>:<image_tag> .
Run containers
- 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