!stats command
This commit is contained in:
14
plugins/stats.lua
Normal file
14
plugins/stats.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user