blob: d6ac40ded48aaa7795106f87f5863b09b9a65a75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
return {
name = "ping",
description =
"The `!ping` command checks to see if it's alive and gives a bunch of other data like memory usage, compiler version, etc.",
delay_sec = 5,
options = {},
subcommands = {},
minimal_rights = "user",
handle = function(request)
return request.sender.alias_name .. ": funnywhitecat Pong! " ..
bot_get_compiler_version() ..
" · Uptime: " .. time_humanize(bot_get_uptime()) ..
" · Used memory: " .. math.ceil(bot_get_memory_usage() / 1024 / 1024) ..
"MB · Bot running on v" .. bot_get_version() ..
" (Last updated " .. time_humanize(time_current() - bot_get_compile_time()) .. " ago)"
end
}
|