2008-06-04 21:23:12 +00:00
|
|
|
plugins are located in plugins/
|
|
|
|
|
|
|
|
focus: as little boilerplate as possible, without being arcane
|
|
|
|
|
2009-04-25 06:00:28 +00:00
|
|
|
TODO: documentation :3
|
2008-06-04 21:23:12 +00:00
|
|
|
|
|
|
|
input:
|
|
|
|
nick -- string, the nickname of whoever sent the message
|
|
|
|
channel -- string, the channel the message was sent on. Equal to nick if it's a private message.
|
|
|
|
msg -- string, the line that was sent
|
|
|
|
raw -- string, the raw full line that was sent
|
|
|
|
re -- the result of doing re.match(hook, msg)
|
|
|
|
|
|
|
|
attributes and methods of bot:
|
|
|
|
say(msg): obvious
|
|
|
|
reply(msg): say(input.nick + ": " + msg)
|
|
|
|
msg(target, msg): sends msg to target
|
|
|
|
(other irc commands, like mode, topic, etc)
|