Telegram bot that "cuts off" 13:37 time at 13:38.
TELEGRAM_BOT_TOKEN
: The bot API tokenTELEGRAM_GROUP_ID
: The group ID to target
Set RUST_LOG=guillotine=debug
(or info
or trace
).
To build the docker image based on the current codebase:
$ docker build -t coredump/guillotine-bot:latest .
Then launch a new container from the image:
$ docker run -d --name guillotine-bot \
-e TELEGRAM_BOT_TOKEN=... -e TELEGRAM_GROUP_ID=... \
coredump/guillotine-bot
To stop it again:
$ docker stop guillotine-bot
The docker image at https://hub.docker.com/r/coredump/guillotine-bot will be automatically rebuilt on every push to master.
Licensed under the WTFPL:
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <[email protected]>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.