[Baypiggies] IRC bot framework
patenaude at gmail.com
Mon Dec 17 05:07:22 CET 2012
On Thu, Dec 13, 2012 at 4:43 PM, Don Marti <dmarti at zgp.org> wrote:
> begin Guido van Rossum quotation of Thu, Dec 13, 2012 at 01:53:33PM -0800:
> > Twisted?ha
> Yardbird is an IRC bot system based on Twisted.
> "Yardbird is a Python package that allows you
> to write IRC chat bots using Django. Internally
> it uses Twisted Python to provide a sort of "IRC
> client runserver" that dispatches incoming messages
> to your Django apps."
Thanks for all the options.
In the end I went with just plain twisted. It was a little daunting at
first, but based on the example IRC bot, and looking at the docstrings, I
managed to make a reasonable bot. It's a nagios bot that tails the log and
announces alerts and notifications in an IRC channel. If I manage to clean
it up a little maybe I'll open source it.
The one thing that seems a little broken is pydoc:
$ pydoc26 twisted.words.protocols.irc.IRCClient
Help on class IRCClient in twisted.words.protocols.irc:
twisted.words.protocols.irc.IRCClient = <class
If I look at the actual source, it looks like the docstrings are fine, but
both pydoc and help(...) fail for the IRCClient class, and AFAICT, only the
IRCClient class. Which is unfortunate, because that's the main class you
need to work with in order to build an IRC client.
-- Mitch Patenaude patenaude at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Baypiggies