summaryrefslogtreecommitdiff
path: root/luamods/ping.lua
blob: 8e1578eac7a6ea4efd9d10a6fca5659e0ddcd928 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
return {
    name = "ping",
    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
}