]>
Commit | Line | Data |
---|---|---|
5c6c0839 JR |
1 | # preamble |
2 | import modlib | |
3 | lib = modlib.modlib(__name__) | |
4 | modstart = lib.modstart | |
d1ea05b0 | 5 | modstop = lib.modstop |
5c6c0839 JR |
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]))) |