Heimdall is an IRC bot written in Lua. It's very easy to use and extand.