城市恐怖帕格IRC机器人。
pugbot_ng的Python项目详细描述
pugbot ng=pugbot下一代
命令:
- help
- plzdie
- forcestart
- join或join <mapname>
- leave
- status
- maps
- vote <mapname>
- votes
安装
要安装发行版:
- pip install pugbot_ng
- pugbot_ng
要安装git版本:
- git clone http://github.com/clearskies/pugbot_ng.git
- cd pugbot_ng
- ./setup.py install
- pugbot_ng
配置
配置由json文件处理,该文件位于/etc/pugbot_ng.json 或$HOME/.pugbot_ng.json。配置文件示例如下:
{ "channel": "#pugbot-ng", "maps": [ "abbey", "algiers", "austria", "beijing_b3", "bohemia", "cambridge_fixed", "casa", "crossing", "docks", "dust2_v2", "elgin", "facade_b5", "kingdom_rc6", "mandolin", "oildepot", "orbital_sl", "prague", "ramelle", "ricochet", "riyadh", "sanctuary", "thingley", "tohunga_b8", "tohunga_b10", "toxic", "tunis", "turnpike", "uptown" ], "nick": "pugbot-ng", "owners": [ "foo", "bar" ], "port": 6667, "prefixes": "!>@.", "server": "irc.quakenet.org", "size": 10 }