]> jfr.im git - erebus.git/blame_incremental - modules/modtest.py
Added a few module featuresm depends needs testing!
[erebus.git] / modules / modtest.py
... / ...
CommitLineData
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
9# preamble
10import modlib
11lib = modlib.modlib(__name__)
12modstart = lib.modstart
13modstop = lib.modstop
14
15# module code
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])))