]> jfr.im git - erebus.git/blobdiff - modules/foo.py
trivia - updated example json
[erebus.git] / modules / foo.py
index 526fdff1d6c9c405bcb5f6e83d6d1bb8b53c08d4..0278eb1ea6c00a72d17d2a55e2474e60d43d7309 100644 (file)
@@ -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!")