support scheduler

This commit is contained in:
xtaodada 2023-05-24 23:29:45 +08:00
parent 89d14d1dbb
commit c9c9ef4f99
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -16,6 +16,6 @@ async def update_all(_, message: Message):
await msg.edit("检查更新完毕!")
# @scheduler.scheduled_job("cron", minute="*/30", id="update_all")
# async def update_all_30_minutes():
# await check_update()
@scheduler.scheduled_job("cron", minute="*/30", id="update_all")
async def update_all_30_minutes():
await check_update()