X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/f5aec86546a7762dd0202f3983de22fe1c3814e9..7c4a7d0ac3865f38f18c91ef6725c1408195c387:/modules/foo.py diff --git a/modules/foo.py b/modules/foo.py index 54e1b51..ea91a9f 100644 --- a/modules/foo.py +++ b/modules/foo.py @@ -6,7 +6,7 @@ modinfo = { 'author': 'Erebus Team', 'license': 'public domain', - 'compatible': [2], # compatible module API versions + 'compatible': [0], # compatible module API versions 'depends': [], # other modules required to work properly? 'softdeps': ['help'], # modules which are preferred but not required } @@ -43,6 +43,7 @@ def needchan(bot, user, chan, realtarget, *args): @lib.hook(needchan=False, wantchan=True) @lib.help(None, 'a command which will consume a channel if given') +def wantchan(bot, user, chan, realtarget, *args): if chan is not None: bot.msg(user, "Channel provided: %s" % (chan)) else: