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_ADDRESS=john.doe@mail.ru
EMAIL_APP_PASSWORD=123ABC123ABC
NOTIFIER_ADDRESS=notifier@organization.com
DUMP_EMAIL_ADDRESS=jane.doe@mail.ru
BOT_TOKEN=12312313123:ABCABCABCABC
ALLOWED_USERS="123456789,987654321"
DEVELOPER_CHAT_ID=123456789
Configuration 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 -d
Container 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