添加 Debug 调试任务和运行 bot 的 task

This commit is contained in:
2025-09-28 20:31:18 +08:00
parent d6d68dcc96
commit a727c108fe
3 changed files with 41 additions and 1 deletions

5
bot.py
View File

@ -14,7 +14,7 @@ env_enable_qq = os.environ.get("ENABLE_QQ", "none")
env_enable_discord = os.environ.get("ENABLE_DISCORD", "none")
env_enable_minecraft = os.environ.get("ENABLE_MINECRAFT", "none")
if __name__ == "__main__":
def main():
nonebot.init()
driver = nonebot.get_driver()
@ -35,3 +35,6 @@ if __name__ == "__main__":
nonebot.load_plugins("konabot/plugins")
nonebot.run()
if __name__ == "__main__":
main()