Exemple #1
0
def citation_auto(message):
    global quote_enabled
    if (quote_enabled == False):
        message.reply("Citations activées : une citation toute les 12 heures")
        schedule.every(12 * 3600).seconds.do(reply_random_quote, message)
        quote_enabled = True
    else:
        message.reply("Citations désactivées")
        schedule.clear()
        quote_enabled = False
Exemple #2
0
def cancel_jobs(message):
    schedule.clear()
    message.reply('Job arrêté')
    global quote_enabled
    quote_enabled = False
Exemple #3
0
def cancel_jobs(message):
    schedule.clear()
    message.reply(utils.text_stop(kv))
Exemple #4
0
def cancel_jobs(message):
    schedule.clear()
    message.reply('all jobs canceled.')
Exemple #5
0
 def cancel_jobs(self, message: Message):
     """Cancels all scheduled jobs, including recurring and one-time events."""
     schedule.clear()
     self.driver.reply_to(message, "Canceled all jobs.")