资 源 简 介
Module providing an easy interface to create IRC bots in python.
Uses regexes in combination with an event-like system to handle messages, and abstracts many IRC commands. Includes flood control and easy parallelism, enabled by default.
Although pythonircbot is designed for IRC bots, it is (in most cases) flexible enough to serve as a general IRC library.
[Documentation](http://www.milanboers.nl/pythonircbot/documentation.html)
Released under GNU Affero General Public License.
Example code of a simple echo bot:
```
import pythonircbot
myBot = pythonircbot.Bot("MyBot")
myBot.connect("irc.freenode.net")
def echo(msg, channel, nick, client, msgMatch):
myBot.sendMsg(channel, msg)
myBot.addMsgHandler(echo)
myBot.waitForDisconnect()
```
Because all handlers run in seperate threads, creating an echo bot that would echo after 2 secon