#Spock A PHP based IRC echo bot for the Starmade server
###Introduction Spock intergrates a Starmade server with IRC (Internet Relay Chat). It broadcasts various events to an channel and allows crewmembers to administrate the server without having to be ingame.
###Features
- Broadcasting of ingame chat, join and part messages
- A punishment system that keeps track of all previous offences
- Various commands to make your life easier. The full list is in the wiki
- A Linux based operating system
- The ability to start php scripts from shell
- FTP/SFTP access to the server
- A copy of the Nuwani IRC Platform. thrunk is recommended.
- A Starmade server being run inside a screen
- Login using the user that runs the Starmade server
- Shutdown the Starmade server if it is running
- Make a directory to house the bot in. I suggest you keep this isolated from the Starmade server e.g. /home/starmade/Server for starmade and /home/starmade/Nuwani for the bot
- Start a screen with name 'starmade' and de-attach yourself using Control+A D:
$ screen -S starmade
- Download a copy of Nuwani. thrunk is recommended. Use could use an online tool like svndownload without having to install tortoisesvn. Simply go to the webpage, enter
http://nuwani.googlecode.com/svn/trunk/src
and hit download. - Upload the contens of the zip to the directory you've created for the bot.
- Edit example_config.php to your needs and rename it to config.php
- Modify the 'Networks' array to where you want to deploy the bot
- Modify the 'Bots' array to your liking
- List all channels you want the bot to join on line 83, separating them with a comma eg '#Myserver', '#Myserver.crew channelpass'
- Download a copy of Spock
- Upload the contents to the Modules directory
- Edit Modules/Spock/Configuration.php to your situation
- Start the bot:
$ cd /home/starmade/Nuwani
$ nohup php run.php&
The bot should be joining your channel within a few seconds. If nothing happens, check nohop.out for any error messages.