Pgkbot/Code

Installing PgkBot on Windows
1. Install python Get Python from http://www.python.org/ftp/python/2.4.2/python-2.4.2.msi Tested setup: "Install for all users on c:\Python24". Installed size: 16Mb (all options enabled)

2. Install twisted Twisted is a python library used by pgkbot. Get it at http://tmrc.mit.edu/mirror/twisted/Twisted/2.1/Twisted_NoDocs-2.1.0.win32-py2.4.exe

3. Unpack pgkbot Retrieve it from http://www.pathos.ca/tools/pgkbot/ and unzip it into c:\pgkbot

4. Configure the bot There are a few text files that need to be edited.


 * Change c:\pgkbot\Config\IRCConsole.conf to something like

server=irc.freenode.net port=6667 nick=botnick password=password (optional) #operpassword= owner=yournick
 * 1) Server and port to connect to


 * Change C:\pgkbot\Config\RCReader.conf to:

server=irc.wikimedia.org port=6667 nick=botnick

5. Create a "language" Setup a "language" for each wiki you want this bot to cover. This is done by running the NewLang.py command e.g. python NewLang.py en will setup a set of config etc. directories for "language" en


 * And finally C:\pgkbot\Config\en\StaticConfig to:

controlchannel=#vcn-test rcsourcechannel=#en.wikipedia baseurl=http://en.wikipedia.org

6. Run pgkbot Now open a DOS prompt, and open the directory pgkbot is installed in, then type c:\python24\python.exe CVUBot.py en and enjoy pgkbot! After connecting, pgkbot will be silent, be sure to make it speak and route some events (check Bots for command help).

-
 * Comments, troubleshooting regarding windows setup: User talk:Az1568
 * Pgkbot commands: Pgkbot/Help
 * Bots help at Bots