From c9c9ef4f99005584b249bb3ca29509b9f3485851 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Wed, 24 May 2023 23:29:45 +0800 Subject: [PATCH] support scheduler --- plugins/update.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/update.py b/plugins/update.py index f093360..793c308 100644 --- a/plugins/update.py +++ b/plugins/update.py @@ -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()