Lua 机器人

lua-users home
wiki

lua_bot 是一个用 Lua 编写的 IRC 机器人。

描述

lua_bot 允许频道用户执行基本命令。目前支持两个命令

为了防止机器人向公共频道发送垃圾邮件,请将任何“游戏”操作移至 freenode 上的 #luabot 频道,或通过私信与机器人联系。

示例用法

<cladhaire> !api pcall
<lua_bot> Documentation for 'pcall' can be found at https://www.lua.ac.cn/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 中使用的沙箱可以在 [Github] 上找到。

源代码: 沙箱源代码可用(见上文),但 IRC 代码过于特定,无法公开发布。如果您正在寻找库,我建议您使用 [LuaIRC]

依赖项: [LuaSocket]

作者: jnwhiteh(以前称为 Cladhaire),在 cide、shirik 和 batrick 等其他人的帮助下。


最近更改 · 偏好设置
编辑 · 历史记录
最后编辑于 2012 年 9 月 3 日下午 2:25 GMT (差异)