mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-23 00:57:42 +08:00
fix: Update core.py
This commit is contained in:
parent
50b851a2c4
commit
87061fb5cb
@ -222,7 +222,7 @@ async def _(bot: T_Bot):
|
|||||||
# 每天4点更新
|
# 每天4点更新
|
||||||
@scheduler.scheduled_job("cron", hour=4)
|
@scheduler.scheduled_job("cron", hour=4)
|
||||||
async def every_day_update():
|
async def every_day_update():
|
||||||
if get_config("auto_update"):
|
if get_config("auto_update", default=True):
|
||||||
result, logs = update_liteyuki()
|
result, logs = update_liteyuki()
|
||||||
if result:
|
if result:
|
||||||
await broadcast_to_superusers(f"Liteyuki updated: ```\n{logs}\n```")
|
await broadcast_to_superusers(f"Liteyuki updated: ```\n{logs}\n```")
|
||||||
|
Loading…
Reference in New Issue
Block a user