若智问题

This commit is contained in:
2026-10-25 20:29:05 +08:00
parent 113c8eb203
commit 1c2084216a
3 changed files with 12 additions and 2 deletions
+11
View File
@@ -27,8 +27,19 @@ def startup():
rlib.set_log_level(logger._core.extra.get("nonebot_log_level", "INFO"))
except Exception as e:
logger.error(f"设置日志等级失败: {e}")
flag = False
@driver.on_bot_connect
def _():
global flag
if flag:
return
rlib.boot(str(Path.cwd()), "nonebot_plugin_sekai_update_notify", pconfig.assets_studio_path)
scheduler.add_job(sync, "interval", seconds=10, id="sekai_update_sync", replace_existing=True)
flag = True
@driver.on_shutdown