1
0
forked from bot/app

新增observer类和开发调试器

This commit is contained in:
2024-08-12 04:45:59 +08:00
parent 83325e63ea
commit c9157f0e2c
20 changed files with 222 additions and 214 deletions

View File

@ -29,13 +29,12 @@ def _():
logger.info("生命周期监控器:准备启动")
@bot.on_before_shutdown
@bot.on_before_process_shutdown
def _():
print(get_channel("main"))
logger.info("生命周期监控器:准备停止")
@bot.on_before_restart
@bot.on_before_process_restart
def _():
logger.info("生命周期监控器:准备重启")