X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/fb20be7c5c80f13474786337d69005f3497d21c6..8ad3a154ed71b051b47fc665e26175d599ba7ca3:/modules/foo.py diff --git a/modules/foo.py b/modules/foo.py index 526fdff..0278eb1 100644 --- a/modules/foo.py +++ b/modules/foo.py @@ -26,6 +26,11 @@ def test(bot, user, chan, realtarget, *args): bot.msg(replyto, "You said: %s" % (' '.join([str(arg) for arg in args]))) @lib.hook(('foo', 'bar'), needchan=False) #hooks !foo and !bar as aliases -@lib.help(None, 'replies with nonsense.', cmd=('foo', 'bar')) +@lib.help(None, 'replies with nonsense.', "it's a very non-sensical command", "more lines") def foobar(bot, user, chan, realtarget, *args): bot.msg(user, "Foo bar baz.") + +@lib.hook() +@lib.help(None, 'a command that does nothing but requires you specify a channel') +def needchan(bot, user, chan, realtarget, *args): + bot.msg(user, "You did it!")