- Sends daily question that reads from txt file.
Install requirements with pip3
:
[sudo] pip3 install -r requirements.txt
Execute:
python3 QuestionBot.py
Change BOT_TOKEN by your created bot token. How to create a bot. The file WeekQuestions.txt and ReminderText.txt its sample files. Use your own file with the questions you want. Each line of the file corresponds to weekday , first line Monday, second Tuesday ... Add to LIST_ADMINS array users who can set_scheduler. Ex: LIST_ADMINS = ["@UserAdmin1", "@UserAdmin2"]
/set_scheduler 12 15 4 Europe/Madrid
The bot will send the question daily at 12:15 in timezone Europe/Madrid and the reminder text with day question at 16:15 in timezone Europe/Madrid.