Date: | 2014-06-01 |
---|
使用 Python 编写的一个 irc 库,可以用来对某些 irc 频道做日志(记录)。
直接命令行使用:
git clone git@github.com:LuoZijun/pyirc.git
cd pyirc
python irc.py
在你的代码当中引用:
import irc
host = "irc.freenode.net"
port = 6667
irc = Irc(host=host, port=port, nickname="pyirc", username="python", realname="pythonbot")
irc.connect()
irc.loop()