| 1 | # preamble |
| 2 | import modlib |
| 3 | lib = modlib.modlib(__name__) |
| 4 | modstart = lib.modstart |
| 5 | modstop = lib.modstop |
| 6 | |
| 7 | #module code |
| 8 | @lib.hook('test') |
| 9 | def cmd_test(bot, user, chan, *args): |
| 10 | bot.msg(chan, "You said: !test %s" % (' '.join([str(arg) for arg in args]))) |