The goal of this project is to build an interactive Jabber/XMPP bot that can interpret commands and perform associated actions.
Source code is available via a mercurial repository. Please note that if the machine you wish to clone to is outside the university network you will have to tunnel into riviera first. Pushing is only allowed by project members. Please contact us if you would like to become part of this project.
$ hg clone http://www.compsoc.nuigalway.ie/mercurial/jabber_bot
* 26/6/08 - Modified example script - bot.rb - accordingly. Getting Error = /SFTP/bot.rb:95:in `initialize': wrong number of arguments (1 for 0) (ArgumentError)
* 26/6/08 7:21pm - Switched to alternate Ruby Jabber Bot. Conveniently entitled 'rjbot'! Currently testing with jabber.org user ID's. Quite happily receives and parses commands from my gMail account. CPU footprint is quite low. 0.4% CPU time and 9MB memory allocation. Commands at the moment are limited to the following:
Help: I understand the following commands:
help [<command>]
? [<command>]
Display help for the given command, or all commands if no command is specified
puts <string>
p <string>
Write something to $stdout
rand
Produce a random number from 0 to 10
remind <string>
Remind me about something in 10seconds
This bot, like the others doesn't support SSL/TLS so secured connections are a no-no at the moment!
Next I'll be looking into getting it to open files locally on the server upon which it is being run. This could always be adapted to running scripts etc.
Please ask questions by using the forum.