In #lua, only the interpreter is exposed:
!lua script- Runs the given script as Lua code in a sandbox. The sandbox's restrictions are defined below.
In other channels and in queries, batbot responds to the following commands:
!8ball- Returns a classic 8 ball reply.
!date xxx- Returns the date, formatted similar to C's date command.
!g[oogle] keywords- Returns the first result of a google search with the given keywords.
!owner- Returns the owner nick (batrick).
!quote nick keywords- Does a search through the last things 'nick' said from most recent to latest using the search terms 'keywords'.
word(sp?)- Checks the spelling of 'word'. (The trigger is having '(sp?)' following a word)
ur-- A variety of juvenile replies to equally juvenile remarks.
In order to keep channel spam down, you can play with the Lua interpreter (or the bot in general) in either #batbot, #lua_bot, or in a private message (query).
batbot is written by batrick (on Freenode). Shirik and Cladhaire were instrumental in ensuring the security and correctness of its code.
Sandbox -- Notable differences from the regular Lua interpreter:
The sandbox also includes a variety of custom functions whose names should be self explanatory. Enjoy!
(Reader Note: Mind sharing the source code? This would be a great thing to share with the community.)