irclib -- Internet Relay Chat (IRC) protocol client library
Page Libre 797ef1d43f Md Readme | 4 年前 | |
---|---|---|
COPYING | 16 年前 | |
ChangeLog | 16 年前 | |
Makefile | 16 年前 | |
README | 16 年前 | |
README.md | 4 年前 | |
dccreceive | 16 年前 | |
dccsend | 16 年前 | |
ircbot.py | 16 年前 | |
irccat | 16 年前 | |
irccat2 | 16 年前 | |
irclib.py | 8 年前 | |
python-irclib.spec | 16 年前 | |
servermap | 16 年前 | |
setup.py | 16 年前 | |
testbot.py | 16 年前 |
The home of irclib.py is now:
http://python-irclib.sourceforge.net
This library is intended to encapsulate the IRC protocol at a quite low level. It provides an event-driven IRC client framework. It has a fairly thorough support for the basic IRC protocol, CTCP and DCC connections.
In order to understand how to make an IRC client, I'm afraid you more or less must understand the IRC specifications. They are available here:
http://www.irchelp.org/irchelp/rfc/
Requirements:
Installation:
The main features of the IRC client framework are:
Current limitations:
Unfortunately, this library isn't as well-documented as I would like it to be. I think the best way to get started is to read and understand the example program irccat, which is included in the distribution.
The following files might be of interest:
irclib.py
The library itself. Read the code along with comments and docstrings to get a grip of what it does. Use it at your own risk and read the source, Luke!
irccat
A simple example of how to use irclib.py. irccat reads text from stdin and writes it to a specified user or channel on an IRC server.
irccat2
The same as above, but using the SimpleIRCClient class.
servermap
Another simple example. servermap connects to an IRC server, finds out what other IRC servers there are in the net and prints a tree-like map of their interconnections.
testbot.py
An example bot that uses the SingleServerIRCBot class from ircbot.py. The bot enters a channel and listens for commands in private messages or channel traffic. It also accepts DCC invitations and echos back sent DCC chat messages.
dccreceive
Receives a file over DCC.
dccsend
Sends a file over DCC.
NOTE: If you're running one of the examples on a unix command line, you need to escape the # symbol in the channel. For example, use #test instead of #test.
Enjoy.
Maintainer: keltus keltus@users.sourceforge.net
Original Author: Joel Rosdahl joel@rosdahl.net