This bot obtains registration information by reading notification emails in your inbox. Subsequently, you can view the data of those who registered, send them confirmation letters or thanks for their participation.
.env file should be created in the root directory with the following variables:
EMAIL_ADDRESS: Email address to send emails fromEMAIL_APP_PASSWORD: App password for the email addressNOTIFIER_ADDRESS: Email address to receive notifications fromDUMP_EMAIL_ADDRESS: Email address to send all emails to in DEV modeBOT_TOKEN: Telegram bot tokenALLOWED_USERS: String of comma-separated list of allowed usersDEVELOPER_CHAT_ID: Chat ID of the developer
Example:
[email protected]
EMAIL_APP_PASSWORD=123ABC123ABC
[email protected]
[email protected]
BOT_TOKEN=12312313123:ABCABCABCABC
ALLOWED_USERS="123456789,987654321"
DEVELOPER_CHAT_ID=123456789Configuration is done in src/config.py file.
The most important setting is MODE which can be either DEV or PROD. In DEV mode, all emails are sent to DUMP_EMAIL_ADDRESS and in PROD mode, the bot sends emails to the actual recipients.
docker compose build
docker compose up -dContainer will be started in detached mode. It's configured to always restart on failure. So to stop the bot, use
docker stop mostpp-bot
docker rm mostpp-bot