A Telegram bot that records the time it takes for a moderator to respond.
When someone pings the moderator whose username is specified in the config file, the bot saves the message. Then, if the moderator reacts to this message with one of the specified reactions, the bot records how long it took them to do so. You can view the list of records using the /records command.
At first rename .env.dist
file to .env
and fill or change values in it. Then run it with Docker compose:
docker compose up -d --build
All bot settings stored in the .env
file.
BOT_TOKEN
- your bot token from BotFatherCHAT_ID
- the chat where the bot will work (it starts with "-100")USERNAME
- the moderator's username (case-insensitive)REACTIONS
- the list of reactions that bot will handle
REDIS_HOST
- the hostname of the Redis serverREDIS_PORT
- the port on which Redis server is listeningPRUNE_TIME
- the time the bot will wait for a reaction to each message (in seconds)RECORDS_LIMIT
- the maximum number of records in the record list