Brian S. Stephan
01d3c7c80c
this is a big change. DrBotIrc is now in charge of module loading and unloading, aliases, and recursion. the Alias module is no more, and a bunch of functionality was moved out of IrcAdmin, including also config file saving, the sigint handler, and quitting the bot. additionally, a lot of stuff got caught in the wake. dr.botzo.py is simpler now, and lets DrBotIRC do the dynamic loading stuff. Module.__init__ changed, modules no longer get modlist and instead get a reference to the DrBotIRC object. IrcAdmin still has the same exposed methods, but now calls out to DrBotIRC to achieve some of them. naturally, a recursion/alias rewrite was included with this change. it is clearer now (i think), but probably brittle somewhere. additionally, currently any module that has registered a pubmsg handler can potentially fire more than once on one input (without recursion). this may be the next thing to fix. do() may need to be split, or maybe it's time to stop having modules deal with pubmsg/privmsg entirely. need to decide. WEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE |
||
---|---|---|
extlib | ||
modules | ||
scripts | ||
.gitignore | ||
BUGS | ||
COPYING | ||
DrBotIRC.py | ||
EXTERNALS | ||
Module.py | ||
README | ||
TODO | ||
dr.botzo.cfg.example | ||
dr.botzo.py |
README
dr.botzo --- an IRC bot dr.botzo is an IRC bot written in Python and using irclib.py to handle most of the protocol stuff. It is mostly a fun project for a couple of us to hack around on, but you may find it useful, in which case you're free to copy this source, send patches, etc. SOURCE http://www.incorporeal.org/sw/?a=summary&p=dr.botzo AUTHORS Brian S. Stephan <bss@incorporeal.org> DEVELOPMENT The bot is currently written to be fairly modular. No real documentation on this yet, but those interested in developing more features should take a look at the classes in dr.botzo.py.