On Thu, Dec 13, 2012 at 4:43 PM, Don Marti <span dir="ltr"><<a href="mailto:dmarti@zgp.org" target="_blank">dmarti@zgp.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
begin Guido van Rossum quotation of Thu, Dec 13, 2012 at 01:53:33PM -0800:<br>
> Twisted?ha<br>
<br>
Yardbird is an IRC bot system based on Twisted.<br>
<br>
  "Yardbird is a Python package that allows you<br>
  to write IRC chat bots using Django. Internally<br>
  it uses Twisted Python to provide a sort of "IRC<br>
  client runserver" that dispatches incoming messages<br>
  to your Django apps."<br>
<br>
<a href="http://zork.net/yardbird/" target="_blank">http://zork.net/yardbird/<br></a><br></blockquote><div><br></div><div>Thanks for all the options.</div><div><br></div><div>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.</div>
<div><br></div><div>The one thing that seems a little broken is pydoc:</div><div>$ pydoc26 twisted.words.protocols.irc.IRCClient</div><div>Help on class IRCClient in twisted.words.protocols.irc:</div><div><br></div><div>twisted.words.protocols.irc.IRCClient = <class twisted.words.protocols.irc.IRCClient></div>
<div> </div><div>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.</div>
<div><br></div><div>  -- Mitch Patenaude   <a href="mailto:patenaude@gmail.com">patenaude@gmail.com</a></div></div><br>