Nurdbot: Difference between revisions

From NURDspace
No edit summary
No edit summary
Line 1: Line 1:
NURDbot is a small IRC bot based on the fantastic jsonbot by Bart Thate.
NURDbot is a small IRC bot based on the fantastic jsonbot by Bart Thate. It runs on [[Tankstation]].


== Writing custom commands ==
Extensions go in ''/home/nurdbot/.jsb/myplugs/socket''. In theory you could load a plugin with:


== Custom commands ==
<code>!plug-enable <plugin name></code>
 
In practice it turns out you have to kill the bot, start it again (see bolow how) and then do the !plug-enable.
 
== Reloading the bot ==
 
* kill process starting with "python2.7 ./bin/jsb-irc"
* as user nurdbot, run the following
 
<code>screen ~/jsonbot/botstart.sh</code>
 
== Our custom commands ==
* !badum - for terrible jokes
* !badum - for terrible jokes
* !wikipedia - customised from the basic version
* !wikipedia - customised from the basic version

Revision as of 21:54, 11 April 2014

NURDbot is a small IRC bot based on the fantastic jsonbot by Bart Thate. It runs on Tankstation.

Writing custom commands

Extensions go in /home/nurdbot/.jsb/myplugs/socket. In theory you could load a plugin with:

!plug-enable <plugin name>

In practice it turns out you have to kill the bot, start it again (see bolow how) and then do the !plug-enable.

Reloading the bot

  • kill process starting with "python2.7 ./bin/jsb-irc"
  • as user nurdbot, run the following

screen ~/jsonbot/botstart.sh

Our custom commands

  • !badum - for terrible jokes
  • !wikipedia - customised from the basic version
  • !fluoro - controls the fluorescent lights
  • !wol - Performs wake-on-lan actions for machines in the space
  • !janee - response in the affirmative or negatory sense to inquiries
  • !speak - Text to speach using Festival on Robinson
  • !statustoggle - (temp) manually switch the space from closed to open
  • !wau-temp - Read the external temperature from the WUR sensors