bot启动类

This commit is contained in:
ccc_dw 2023-11-06 16:49:33 +08:00
parent ce6e072550
commit c3543e5089

2
bot.py
View File

@ -22,5 +22,5 @@ nonebot.load_plugins("hexi") # 加载bot自定义插件
nonebot.load_from_toml("pyproject.toml") nonebot.load_from_toml("pyproject.toml")
if __name__ == "__main__": if __name__ == "__main__":
logger.warning("xx?启动!") logger.warning("hexi?启动!")
nonebot.run(app="__mp_main__:app") nonebot.run(app="__mp_main__:app")