Total Complexity | 2 |
Total Lines | 12 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | from event import Event |
||
6 | class ExampleDerived(BaseModule): |
||
7 | def post_init(self): |
||
8 | pass |
||
9 | #custom = Event("__.custom__") |
||
10 | #custom.define(msg_definition="^\.custom") |
||
11 | #custom.subscribe(self) |
||
12 | |||
13 | # register ourself to our new custom event |
||
14 | #self.bot.register_event(custom, self) |
||
15 | |||
16 | def handle(self, event): |
||
17 | pass |
||
18 | #self.say(event.channel, "custom event caught!") |
||
19 |