3
µbot is not a bot for scriptkiddies. It takes a bit of effort to install and
4
does not yet come in a nice installation package. It's also not a click-and go
5
solution and does not have a 'config wizard'. But if you're prepared to follow
6
this guide you will end up with one of the best IRC bots since sliced bread.
10
Since µbot does not yet come with nice install packages, you will need to
11
install any prerequisites yourself. You will need the following software:
14
* DBus and dbus-python
18
* pygtk (only the gobject bits are needed)
19
* mysql and python-MySQLdb (you could use sqlite or postgres as well)
23
If you use Ubuntu, you can install all these packages with the following
26
sudo apt-get install python2.5 dbus python-dbus python-django python-tz \
27
python-chardet python-gobject mysql-server-5.0 \
28
python-mysqldb python-apt bzr
32
The code is hosted at launchpad.net, where development is coordinated. To
33
download the code, you need to use ``bzr``. The follwing command will create
34
a copy of the µbot sourcecode in a directory called ``ubot``. ::
36
bzr branch lp:ubot ubot
38
To update the code to the latest version, you can use the following command
39
in the newly created ``ubot`` directory ::
43
Since µbot is written in python, it does not need to be compiled. Installation
48
Since µbot is fairly simple, configuring it is a breeze. There are only a few
49
variables to set. For a simple setup without failover, the following is enough ::
57
server1 = irc.freenode.net
60
There is no limit to the number of nicks or servers you can define, just make
61
sure they have consecutive, increasing numbers. Place this in
62
``~/.ubot/<busname>/config`` (replace <busname> with something alpanumeric
63
that's similar to the bots nickname).