Skip to content

aigualada/QuestionBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Question Bot for Telegram

  • Sends daily question that reads from txt file.

Installation

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"]

Usage

/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.

About

Simple Question Bot for Telegram

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages