cringe of the day bot
TODO https://docs-python.ru/packages/biblioteka-python-telegram-bot-python/perekhod-versiiu-20/
- install local compatible python3 (pyenv preferred)
- get local compatible bazel/bazelisk
brew install bazelisk
- export
COTD_TELEGRAM_BOT_TOKEN=
how to get bot and run
bazelisk test //...
bazelisk run //cotd:cotdbot
- install poetry - pipx install poetry
- poetry install
- poetry shell
bazel run --ui_event_filters=-info,-stdout,-stderr --noshow_progress //hack:inspect_db $TOKEN file_id_corresponding_to_bot
- start bot with accepted channelid/channelname flag in gcs and initialized as can-join-groups
- setwebhook method https://core.telegram.org/bots/api#setwebhook if not in token mode
- /cotd will list all messages for the last day and select one which is cringe semi-randomly
- this will require database persistence
- then it will post smiley-cat as a reply
- this will require database persistence
- As a shitposter I want to activate cringebot by sending a sticker so I can save up time typing "/cringe".
- As a shitposter I want to choose the bot activation sticker so I can add it a personal touch.
by github action