Lua Bot

lua-users home
wiki

lua_bot is an IRC bot written in Lua (with the help of [LuaSocket]) that allows the users of the channel to execute basic commands. Currently there are two commands supported:

In order to keep the bot from spamming the public channel, please take any "playing" into the #luabot channel on freenode, or address the bot via private messages.

Example usage

<cladhaire> !api pcall
<lua_bot> Documentation for 'pcall' can be found at http://www.lua.org/manual/5.1/manual.html#pdf-pcall
<cladhaire> lua> for k,v in pairs(_G) do print(k) end
<lua_bot> clad|office: tostring, os, getfenv, pairs, assert, tonumber, strsplit, load, _G, coroutine, loadstring, pp, prettyprint, string,
xpcall, bit, _VERSION, strtrim, table, strjoin, strconcat, setmetatable, next, ipairs, rawequal, collectgarbage, rawset, print, math, pcall,
unpack, type, select, rawget, getmetatable,... (result truncated)

lua_bot has been developed by Cladhaire with help from others notably cide, shirik, and batrick.


FindPage · RecentChanges · preferences
edit · history
Last edited March 13, 2008 12:48 am GMT (diff)