Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

放插件目录里面了怎么没反应啊 #2

Closed
AlanABCDE opened this issue Jun 23, 2022 · 5 comments
Closed

放插件目录里面了怎么没反应啊 #2

AlanABCDE opened this issue Jun 23, 2022 · 5 comments

Comments

@AlanABCDE
Copy link

AlanABCDE commented Jun 23, 2022

装plugins目录里面了 启动的时候也提示成功导入了 但是输入指令以后也没反应啊

@po-lan
Copy link
Owner

po-lan commented Jun 23, 2022

装plugins目录里面了 启动的时候也提示成功导入了 但是输入指令以后也没反应啊

没报错的话 需要自己研究一下

@yanluoli
Copy link

打开__init__.py 看一下就明白了

@AlanABCDE
Copy link
Author

AlanABCDE commented Jun 24, 2022

我是把插件放到自定义插件目录的,然后init.py里面的路径也改成当前这个目录了。还是没啥用,按照插件里面的指令调用机器人也是没反应,,,,寄了
image
image

@fuyang0811
Copy link

我是把插件放到自定义插件目录的,然后init.py里面的路径也改成当前这个目录了。还是没啥用,按照插件里面的指令调用机器人也是没反应,,,,寄了 image image

我用的完整目录,没问题,重启后就可以用了。nonebot.load_plugins("/home/zhenxun_bot/plugins/zhenxun_plugins_TZseries")

@po-lan
Copy link
Owner

po-lan commented Jun 25, 2022

那为什么不试一下 ./plugins/zhenxun_plugins_TZseries
我认为这样也是OK的

@po-lan po-lan closed this as completed Jun 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants