User:RoboJeb/Source

From Kerbal Space Program Wiki
< User:RoboJeb
Revision as of 21:32, 5 October 2012 by N3X15 (talk | contribs) (Use on KSP Wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

User:RoboJeb is a python-based bot that runs on top of the useful WikiTools framework. The system it uses to interpret wiki pages for page filters is borrowed from WindBOT on the Team Fortress Wiki.

As both WindBOT and WikiTools are both GPL, RoboJeb is also open-source.

Installing

RoboJeb runs on any of 3 different servers, but they all run Debian Linux. This tutorial assumes you are on Debian, and is therefore a bit different than WindBOT's tutorial.

  1. Ensure python is installed.
  2. If you intend on using it for crushing images, you'll need:
    • apt-get install libjpeg-progs pngcrush
  3. Install additional packages:
    • apt-get install python-feedparser
    • apt-get install p7zip
  4. Make a directory for your bot:
    mkdir ~/MyBot && cd ~/MyBot
  5. Install the python support scripts:
    wget 'http://upload.gaiatools.com/files/wikitools_mod_5.7z'
    p7zip -d wikitools*.7z
    cd wikitools
  6. Install the bot itself by copying bot.py and botConfig.py from here to your installation folder.
  7. Edit botConfig.py to suit your needs (you don't need the Steam API thing)
  8. Make bot.py executable so you can run it: chmod +x bot.py
  9. Run it!
    ./bot.py

Use on KSP Wiki

  • Before running any bots on the KSP wiki, please let N3X15 (talk) or UmbralRaptor know.
  • Add {{BlockBotButton|owner=~~~}} to the page so we can block it if it breaks, and contact you.
  • Ensure your bot has a Bot flag before running, or it'll fill the Recent Changes with stuff.