]> jfr.im git - erebus.git/blob - modules/modtest.py
Added a few module featuresm depends needs testing!
[erebus.git] / modules / modtest.py
1 # module info
2 modinfo = {
3 'author': 'John Runyon (DimeCadmium)',
4 'license': 'public domain',
5 'compatible': [1], # compatible module API versions
6 'depends': [], # other modules required to work properly?
7 }
8
9 # preamble
10 import modlib
11 lib = modlib.modlib(__name__)
12 modstart = lib.modstart
13 modstop = lib.modstop
14
15 # module code
16 @lib.hook('test')
17 def cmd_test(bot, user, chan, *args):
18 bot.msg(chan, "You said: !test %s" % (' '.join([str(arg) for arg in args])))