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-04 16:09:08 +01:00

17 lines
292 B
Lua

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