如何优先调用本地插件
#190
Replies: 1 comment 2 replies
-
请把你的bot.py完整内容贴上来 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
文档中通过这段代码来指定插件和插件的目录
nonebot.load_from_json("plugin_config.json", encoding="utf-8")
并且已经在本地创建了plugin_config.json文件
{ "plugins": [ ], "plugin_dirs": [ "src/plugins" ] }
但是后台里面依旧加载了非该目录的插件,我想知道这个目录在哪里。Lib\site-packages中也没找到
另外,该文件夹下src/plugins已经放入了正确且能运行的插件
nb run 之后依旧无法加载该目录下的所有插件
Beta Was this translation helpful? Give feedback.
All reactions