mirror of
https://github.com/derogab/ITAvsCOVIDbot
synced 2025-03-12 01:00:14 +01:00
Change schedule time
Change schedule time from 10:00 to 18:00
This commit is contained in:
parent
35649392f5
commit
133d2f5bfb
4
bot.py
4
bot.py
@ -236,7 +236,7 @@ def news(update, context):
|
||||
if news == "on":
|
||||
to_set = True
|
||||
set_msg = "Le notifiche giornaliere sono state correttamente abiitate.\n\n"
|
||||
set_msg += "Riceverai i dati sul progresso della battaglia contro il Covid in Italia ogni giorno alle 10:00."
|
||||
set_msg += "Riceverai i dati sul progresso della battaglia contro il Covid in Italia ogni giorno alle 18:00."
|
||||
|
||||
elif news == "off":
|
||||
to_set = False
|
||||
@ -352,7 +352,7 @@ start_handler = CommandHandler('news', news)
|
||||
dispatcher.add_handler(start_handler)
|
||||
|
||||
# Setup cron
|
||||
schedule.every().day.at("10:00").do(job)
|
||||
schedule.every().day.at("18:00").do(job)
|
||||
|
||||
# Start bot
|
||||
updater.start_polling()
|
||||
|
Loading…
x
Reference in New Issue
Block a user