This repository has been archived on 2023-04-13. You can view files and clone it, but cannot push or open issues or pull requests.
CloudBot/docs/interface

22 lines
592 B
Plaintext
Raw Normal View History

2011-11-20 10:23:31 +01:00
GOALS:
2012-02-28 03:13:12 +01:00
* simplicity
* as little boilerplate and magic as possible
* multithreaded dispatch
2011-11-20 10:23:31 +01:00
plugins are located in plugins/
input:
2012-02-28 03:13:12 +01:00
2011-11-20 10:23:31 +01:00
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:
2012-02-28 03:13:12 +01:00
2011-11-20 10:23:31 +01:00
say(msg): obvious
reply(msg): say(input.nick + ": " + msg)
msg(target, msg): sends msg to target
(other irc commands, like mode, topic, etc)