]>
Commit | Line | Data |
---|---|---|
28d7d32f JR |
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 | ||
5c6c0839 JR |
9 | # preamble |
10 | import modlib | |
11 | lib = modlib.modlib(__name__) | |
12 | modstart = lib.modstart | |
d1ea05b0 | 13 | modstop = lib.modstop |
5c6c0839 | 14 | |
28d7d32f | 15 | # module code |
5c6c0839 JR |
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]))) |