同样,当我键入!status时,Helloworld不在列表中作为A(活动)。我不认为它正在读取我的插件。有什么建议吗?
# code for helloworldld.py
from errbot import BotPlugin, botcmd
class HelloWorld(BotPlugin):
"""Example 'Hello, world!' plugin for Errbot"""
@botcmd
def hello(self, msg, args):
"""Say hello to the world"""
return "Hello, world!"# code for helloworld.plug
[Core]
Name = HelloWorld
Module = helloworld
[Python]
Version = 2+
[Documentation]
Description = Example "Hello, world!" plugin发布于 2020-05-12 01:15:38
模块名称应与python文件名匹配。请检查BOT_EXTRA_PLUGIN_DIR =r‘/plugins的配置,默认情况下使用插件目录。使用!plugin_reload命令进行验证。它应该会列出你的插件HelloWorld。
https://stackoverflow.com/questions/36922184
复制相似问题