Closed koking0 closed 2 years ago
不知为何,某次重启之后,机器人突然失效,全是报错,最终定位到是nonebot_plugin_manager的问题,关闭后没有报错,之前一直使用正常。
启动文件:
import nonebot from nonebot.adapters.onebot.v11 import Adapter as Adapter nonebot.init() app = nonebot.get_asgi() nonebot.load_plugin("nonebot_plugin_remake") nonebot.load_plugin("nonebot_plugin_emojimix") nonebot.load_plugin("nonebot_plugin_petpet") nonebot.load_plugin("nonebot_plugin_bread_shop") nonebot.load_plugin("nonebot_plugin_cocdicer") nonebot.load_plugin("nonebot_plugin_memes") nonebot.load_plugin("nonebot_plugin_simplemusic") nonebot.load_plugin("nonebot_plugin_russian") nonebot.load_plugin("nonebot_plugin_tarot") nonebot.load_plugin("nonebot_plugin_what2eat") nonebot.load_plugin("nonebot_plugin_blackjack") nonebot.load_plugin("nonebot_plugin_randomtkk") # nonebot.load_plugin("nonebot_plugin_manager") # 暂时停用,有报错 nonebot.load_plugin("nonebot_plugin_maze") nonebot.load_plugin("nonebot_plugin_cchess") nonebot.load_plugin("nonebot_plugin_withdraw") nonebot.load_plugin("nonebot_plugin_youthstudy") nonebot.load_plugin("nonebot_plugin_crazy_thursday") nonebot.load_plugin("nonebot_plugin_fortune") nonebot.load_plugin("nonebot_plugin_morning") nonebot.load_plugin("nonebot_plugin_abstract") nonebot.load_plugin("nonebot_plugin_minesweeper") nonebot.load_plugin("nonebot_plugin_horserace") nonebot.load_plugin("nonebot_plugin_abbrreply") nonebot.load_plugin("nonebot_plugin_hammer_nbnhhsh") nonebot.load_plugin("nonebot_plugin_groupmate_waifu") nonebot.load_plugin("nonebot_plugin_drawer") nonebot.load_plugin("nonebot_plugin_giyf") nonebot.load_plugin("nonebot_plugin_wordsnorote") nonebot.load_plugin("nonebot_plugin_gspanel") nonebot.load_plugin("nonebot_plugin_guild_patch") nonebot.load_plugin("nonebot_plugin_gsmaterial") nonebot.load_plugin("nonebot_plugin_answersbook") nonebot.load_plugin("nonebot_plugin_who_at_me") nonebot.load_plugin("nonebot_plugin_covid_19_by") nonebot.load_plugins("src/plugins/auto_reply") nonebot.load_plugins("src/plugins/scheduler") driver = nonebot.get_driver() driver.register_adapter(Adapter) nonebot.load_from_toml("pyproject.toml") if __name__ == "__main__": nonebot.logger.warning("Always use `nb run` to start the bot instead of manually running!") nonebot.run(app="__mp_main__:app")
请查看你 bot 目录下的 data/manager/plugin_list.yml 文件
data/manager/plugin_list.yml
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在看见后,尽快给你回复。
此文件为空
文件删了之后重启就可以了。
不知为何,某次重启之后,机器人突然失效,全是报错,最终定位到是nonebot_plugin_manager的问题,关闭后没有报错,之前一直使用正常。
启动文件: