Categorygithub.com/alitvinenko/fcsempark_bot
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

  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