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