This repository has been archived on 2021-04-24. You can view files and clone it, but cannot push or open issues or pull requests.
Mikubot/plugins/help.lua
2014-11-22 15:05:54 +01:00

17 lines
330 B
Lua

function run(msg, matches)
local ret = ""
for k, dict in pairs(plugins) do
if dict.usage ~= "" then
ret = ret .. dict.usage .. " -> " .. dict.description .. "\n"
end
end
return ret
end
return {
description = "Lists all available commands",
usage = "!help",
patterns = {"^!help$"},
run = run
}