oops this is what I meant to put in the last one
This commit is contained in:
2
app.py
2
app.py
@@ -30,7 +30,7 @@ async def on_ready() -> None:
|
|||||||
print(f"{bot.user.name} is ready.")
|
print(f"{bot.user.name} is ready.")
|
||||||
|
|
||||||
# After successful initialization, schedule tasks.
|
# After successful initialization, schedule tasks.
|
||||||
task_scheduler = BackgroundScheduler(timezone=pytz.timezone('EST'))
|
task_scheduler = BackgroundScheduler(timezone=pytz.timezone('EDT'))
|
||||||
task_scheduler.add_job(lambda: bot.loop.create_task(send_quote()), 'cron', day_of_week='mon-fri', hour=8, minute=50)
|
task_scheduler.add_job(lambda: bot.loop.create_task(send_quote()), 'cron', day_of_week='mon-fri', hour=8, minute=50)
|
||||||
task_scheduler.add_job(lambda: bot.loop.create_task(send_quote()), 'cron', day_of_week='mon-fri', hour='8-14', minute="*/20", jitter=180)
|
task_scheduler.add_job(lambda: bot.loop.create_task(send_quote()), 'cron', day_of_week='mon-fri', hour='8-14', minute="*/20", jitter=180)
|
||||||
task_scheduler.add_job(lambda: bot.loop.create_task(after_class()), 'cron', day_of_week='mon-fri', hour=10, minute=55)
|
task_scheduler.add_job(lambda: bot.loop.create_task(after_class()), 'cron', day_of_week='mon-fri', hour=10, minute=55)
|
||||||
|
|||||||
Reference in New Issue
Block a user