User:RoboJeb/Source
From Kerbal Space Program Wiki
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.
- Ensure python is installed.
- If you intend on using it for crushing images, you'll need:
-
apt-get install libjpeg-progs pngcrush
-
- Install additional packages:
-
apt-get install python-feedparser
-
apt-get install p7zip
-
- Make a directory for your bot:
mkdir ~/MyBot && cd ~/MyBot
- Install the python support scripts:
wget 'http://upload.gaiatools.com/files/wikitools_mod_5.7z'
p7zip -d wikitools*.7z
cd wikitools - Install the bot itself by copying bot.py and botConfig.py from here to your installation folder.
- Edit botConfig.py to suit your needs (you don't need the Steam API thing)
- Make bot.py executable so you can run it:
chmod +x bot.py
- Run it!
./bot.py
Use on KSP Wiki
- Before running any bots on the KSP wiki, please let N3X15 (talk) or UmbralRaptor know.
- Add
{{BotBlockButton}}
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.