From 50b851a2c4823a978f1339000ae6220b08c42ab9 Mon Sep 17 00:00:00 2001 From: Snowykami <79104275+snowykami@users.noreply.github.com> Date: Fri, 12 Apr 2024 07:16:16 +0800 Subject: [PATCH 1/2] fix: Update core.py --- liteyuki/liteyuki_main/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liteyuki/liteyuki_main/core.py b/liteyuki/liteyuki_main/core.py index 0bfbc66c..fea498e2 100644 --- a/liteyuki/liteyuki_main/core.py +++ b/liteyuki/liteyuki_main/core.py @@ -222,7 +222,7 @@ async def _(bot: T_Bot): # 每天4点更新 @scheduler.scheduled_job("cron", hour=4) async def every_day_update(): - if get_config("auto_update", True): + if get_config("auto_update"): result, logs = update_liteyuki() if result: await broadcast_to_superusers(f"Liteyuki updated: ```\n{logs}\n```") From 87061fb5cb2f97f7efd12b3dd70f306223cc5fa6 Mon Sep 17 00:00:00 2001 From: Snowykami <79104275+snowykami@users.noreply.github.com> Date: Fri, 12 Apr 2024 07:17:42 +0800 Subject: [PATCH 2/2] fix: Update core.py --- liteyuki/liteyuki_main/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liteyuki/liteyuki_main/core.py b/liteyuki/liteyuki_main/core.py index fea498e2..cd3eb9f5 100644 --- a/liteyuki/liteyuki_main/core.py +++ b/liteyuki/liteyuki_main/core.py @@ -222,7 +222,7 @@ async def _(bot: T_Bot): # 每天4点更新 @scheduler.scheduled_job("cron", hour=4) async def every_day_update(): - if get_config("auto_update"): + if get_config("auto_update", default=True): result, logs = update_liteyuki() if result: await broadcast_to_superusers(f"Liteyuki updated: ```\n{logs}\n```")