dr.botzo, the IRC bot with Django integration.
Go to file
Brian S. Stephan 2aa369add7 rewrite recursion/alias code for the 500th time.
more of a moving of the code, actually, it now exists in (an overridden)
_handle_event, so that recursions happen against irc events directly,
rather than an already partially interpreted object.

with this change, modules don't need to implement do() nor do we have a
need for the internal_bus, which was doing an additional walk of the
modules after the irc event was already handled and turned into text. now
the core event handler does the recursion scans.

to support this, we bring back the old replypath trick and use it again,
so we know when to send a privmsg reply and when to return text so that
it may be chained in recursion. this feels old hat by now, but if you
haven't been following along, you should really look at the diff.

that's the meat of the change. the rest is updating modules to use
self.reply() and reimplementing (un)register_handlers where appropriate
2011-02-17 01:08:45 -06:00
extlib use a different megahal implementation, which seems to be better at saving the brain. 2011-01-06 00:14:16 -06:00
modules rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
scripts simple utility script to take a newline-separated list of facts and insert to database 2010-11-01 22:17:10 -05:00
.gitignore Merge remote branch 'origin/mjb' 2011-01-20 14:08:39 -06:00
BUGS document sqlite/threads bug 2011-01-19 20:59:24 -06:00
COPYING adding GPLv3 license file 2010-07-27 19:29:28 -06:00
DrBotIRC.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
EXTERNALS remove megahal.py from EXTERNALS 2011-01-06 00:18:02 -06:00
Module.py rewrite recursion/alias code for the 500th time. 2011-02-17 01:08:45 -06:00
README a more helpful README 2010-07-27 19:29:28 -06:00
TODO move Twitter._unescape to Module._unencode_xml 2011-01-26 20:28:34 -06:00
dr.botzo.cfg.example include rank in karma output 2010-10-24 15:13:01 -05:00
dr.botzo.py migrate some code that became pivotal to the bot into DrBotIRC. 2011-01-07 17:38:26 -06:00

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.