Python-based IRC bots..and a #python channel

Cliff, or a close facsimile cjc26 at nospam.cornell.edu
Sat Sep 11 12:50:04 EDT 1999


Pada Fri, 10 Sep 1999 03:24:05 GMT, Eron bilang:
| Hello. I'm looking to really get into python hacking, and I want to
| write a IRC bot in it. Does anyone know of any already existing IRC
| libraries and bots (well-documented ones, with LOTS of in-line comments
| to help me understand),  that I can use and extend, and then eventually
| use it as a model to build one from scratch. Also, is there an
| "official" #python channel somewhere? If there isn't, we should
| establish one. Any info would be greatly appreciated.

Hmm, I was going to wait to announce this, but...
I'm also working on a Python IRC framework, called "Perk"; see
<http://www.people.cornell.edu/pages/cjc26/perk.html> for details.  I
haven't actually written any bots in it yet, but it should be especially
suited for doing so; the core of the program is a file containing a list
of regular expressions, each with an associated block of Python code.
Each line of input from the server is compared to each regex, and when a
match is found, the corresponding code is executed.  So to make a bot
all you would need to do is modify/extend this file to watch for kick
messages, commands in privmsg's, etc.
The only caveats are, this version is PRE-alpha :), and there's not too
much documentation yet.


-- 
cliff crawford   http://www.people.cornell.edu/pages/cjc26/
            There are more stars in the sky than there are
-><-        grains of sand on all the beaches of the world.




More information about the Python-list mailing list