]>
Commit | Line | Data |
---|---|---|
07559983 AS |
1 | # anoy module |
2 | ||
3 | import svc | |
4 | ||
5 | class Annoy: | |
6 | ||
7 | def __init__(self, handler, irc): | |
8 | self.handler = handler | |
9 | self.name = "annoy" | |
10 | ||
11 | irc.send_target_privmsg("O3", "#TheOPS", "%s is loaded"%self.name) | |
12 | handler.addhook("join", self.on_join, "foobar") | |
13 | handler.addcommand(self.name, "dance", self.dance) | |
14 | self.test = "footest" | |
15 | ||
16 | def on_join(self, irc, channel, nick): | |
17 | irc.send_target_privmsg("x3", channel, "%s joined %s:%s "%(nick, channel, self.test)) | |
18 | ||
19 | def dance(self, irc, args): | |
20 | irc.reply("Ok, %s, we can dance %s."%(irc.caller, args)) | |
21 | ||
22 | Class = Annoy |