Skip to content

alitvinenko/fcsempark_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fcsempark_bot

The bot for the Telegram chat "FC Sempark".

Required env variables

  1. CHAT_ID
  2. TOKEN
  3. DATABASE_PATH

TODO

  1. Create Makefile
  2. Move a schedule settings to the Google Sheets and add google sheets loader.
  3. Move all texts to the settings struct and a settings storage.

Docker

Build

docker build --rm -t <image_name>:<image_tag> .

Run containers

  1. Create directory for database file
sudo mkdir /usr/local/_data
  1. Set env variables
export TOKEN=<your bot token>
export CHAT_ID=<chat id>
  1. Build image
make build
  1. Run bot daemon
make run-daemon
  1. Add to crontab schedule when we want to create polls
# /etc/crontab

0 8 * * sun,thu