若智问题
This commit is contained in:
+11
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user