此外,当我键入 !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