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

17 lines
330 B
Lua
Raw Normal View History

2014-11-04 16:09:08 +01:00
function run(msg, matches)
local ret = ""
for k, dict in pairs(plugins) do
2014-11-22 15:05:54 +01:00
if dict.usage ~= "" then
ret = ret .. dict.usage .. " -> " .. dict.description .. "\n"
end
2014-11-04 16:09:08 +01:00
end
return ret
end
return {
description = "Lists all available commands",
2014-11-04 22:06:59 +01:00
usage = "!help",
patterns = {"^!help$"},
2014-11-04 16:09:08 +01:00
run = run
2014-11-22 15:05:54 +01:00
}