errbot does not return "Hello World" when I type !hello

168 Views Asked by At

Also when I type !status, Helloworld is not in the list as A (Active). I do not think it is reading my plugin. Any suggestions?

# 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
1

There are 1 best solutions below

0
On

Module name should match python file name. Please check BOT_EXTRA_PLUGIN_DIR = r'/plugins' config it's by default uses plugin directory. Use !plugin_reload command to validate. It should list your plugin HelloWorld.