X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/0f8352dd7b9e7437ece92f72db01da146aabb51f..591964e837ca06bef75e99a022dbb09582488f51:/modules/foo.py diff --git a/modules/foo.py b/modules/foo.py index 68420c8..0278eb1 100644 --- a/modules/foo.py +++ b/modules/foo.py @@ -29,3 +29,8 @@ def test(bot, user, chan, realtarget, *args): @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!")