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/stats.lua
2014-11-22 20:17:33 +01:00

14 lines
276 B
Lua

function run(msg, matches)
local text = ""
for id, user in pairs(_users) do
text = text..user.name..": "..user.msg_num.."\n"
end
return text
end
return {
description = "Numer of messages by user",
usage = "!stats",
patterns = {"^!stats"},
run = run
}