Skip to content

IRC Client Configuration

jonashartmann edited this page Aug 4, 2012 · 2 revisions

Install required modules

You need geventlib and geventirc.

The simplest way to get them is to install easy_install. You can use it then also to install other modules that you may need.

After the installation, follow the instructions in the site above to download the necessary modules.

Usually you just need to do:

$ easy_install <module_name>

But if you are on Windows you may still need to add easy_install to your PATH before you can run it in the command line. It can be found in the Scripts folder under your Python installation. "C:\Python27\Scripts" for Python 2.7.

Install IRC Client

Then you need an IRC Client. There are different IRC Clients, you can choose your own, or you can get mIRC.

Play with your bots

After performing the above steps, you should be ready to go:

  1. Connect using your above installed IRC Client to irc.aigamedev.com and join the channel #resistance
  2. At your systems console, use the following command to connect bots to the IRC:

In Linux python client.py irc.aigamedev.com <bot_module>.<bot_classname>

In Windows client.py irc.aigamedev.com <bot_module>.<bot_classname>

As an example you could start connecting the RandomBot that is found inside the ##bots## modules.

client.py irc.aigamedev.com bots.RandomBot

Now check out the IRC channel and you should see that your bot connected to it.

To make your bot play some games just type the following command:

PLAY <number_of_games> <bot_name> [<bot_name> [...]]

To play against bots, put your name together with the bots.

Have fun!