frubot is a gateway between IRC and Urban Terror server. You can see it running on #polkowice @ QuakeNET. By using frubot you can see on your channel what is being written on UrT server (both "say" and "teamsay" messages) and vice versa! It has also implemented additional features like kicking, slapping, detecting cheaters via well known kemfew GUID or 1337 port and many more. It is using Big Brother Bot database to check players' aliases.
In order to run frubot following requirements should be met:
Download frubot tar.gz package listed below and unpack it:
$ tar zxf frubot-100413.tar.gzEdit configuration file config.fru to fit your needs:
ircServer=irc.quakenet.orgStart frubot manually:
$ python ./frubot config.fru...or using simple script provided within package (screen required):
$ ./START_IRCBOT.shIf installation and running phase went fine, you should be able to see bot joining your channel specified in configuration. frubot registers players when they're connecting to UrT server, so we need some time (until map reload) to synchronize data between bot and UrT. Messages from UrT server are sent using following format:
<x:nick> or <x:team:nick>which means "say" and "teamsay" respectively. x is a unique client ID which is used to execute commands. These commands are:
!list - lists players present on UrT serverSome of the commands need admin privileges which can be gained by private messaging bot and typing admin password specified in configuration. You can resing from being admin by typing logout. Note that due to unreliable nature of UDP which is base for RCON some commands can be dropped while transporting.
I assume you are familiar with Linux. The most difficult thing to do is to install additional python libraries (especially MySQLdb) if you don't have root access. You can install them somewhere into your home directory eg. /home/me/pylibs, then you have to set enviroment variable PYTHONPATH=/home/me/pylibs/lib/python2.3/site-packages (I recommend you to export this variable in .bash_profile) in order to set python search path automatically after every log in.
A good idea is to set sv_floodprotect to 1 which will prevent bot quitting due to Excess flood frequently.
frubot is based on example program delivered with irclib.py written by Joel Rosdahl <joel(at)rosdahl.net>. Classes events.py, rcon.py and parser.py are borrowed from Kiwi Bot written by Mathieu "MathX" Xhonneux. Thanks! You can freely distribute and modify frubot.
http://kiwi.tuxfamily.org/PS. This is a completely private project I am developing in my free time. It surely has many bugs and unimplemented important features (like reconnect). Don't blame me the code is ugly and non-optimal - I'm neither a python programmer or professional programmer :) Feel free to ask me if you need help: fruk@QuakeNET