]> jfr.im git - erebus.git/blame - modules/modtest.py
Added a few module featuresm depends needs testing!
[erebus.git] / modules / modtest.py
CommitLineData
28d7d32f
JR
1# module info
2modinfo = {
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
5c6c0839
JR
9# preamble
10import modlib
11lib = modlib.modlib(__name__)
12modstart = lib.modstart
d1ea05b0 13modstop = lib.modstop
5c6c0839 14
28d7d32f 15# module code
5c6c0839
JR
16@lib.hook('test')
17def cmd_test(bot, user, chan, *args):
18 bot.msg(chan, "You said: !test %s" % (' '.join([str(arg) for arg in args])))