JsBot is an API for writing IRC bots using the JavaScript scripting language. It uses the Mozilla Foundation's Rhino JavaScript interpreter written in Java and the PircBot Java IRC API. The framework allows you to create an IRC bot in JavaScript quickly and easily with little fuss.
The package includes a simple example IRC bot which will connect to a channel and respond when you say hello to it. Unfortuantly I haven't had time to write down the APIs, but they are quite similar to those used by PircBot with some small simplifications to suit the JavaScript language.
To run the program you will first need to download yourself a copy of Rhino and PircBot. Make sure both of these packages are in your Java CLASSPATH and compile the scripts in the above tar. To run some JavaScript, with the IrcBot JavaScript constrcutor included in the environment use the RunJs class. This also loads up the methods given in the example JavaScript shell provided with Rhino, including the handy print function.
$> java RunJs JsBot.js
The included JavaScript file is quite short, feel free to knock yourself out.
The script has currently only been very lightly tested, and the biggest known bug to date is the inability to subclass the object in JavaScript. My knowledge of Rhino has defeated me here so this is outstanding, if anyone can help me out here this would be greatly appreciated.
If you encounter anything unexpected please send me a bug report and please include the script or an example which shows the flaw if you are able.
Have at it!