summaryrefslogtreecommitdiff
path: root/luamods
diff options
context:
space:
mode:
Diffstat (limited to 'luamods')
-rw-r--r--luamods/ping.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/luamods/ping.lua b/luamods/ping.lua
new file mode 100644
index 0000000..8e1578e
--- /dev/null
+++ b/luamods/ping.lua
@@ -0,0 +1,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
+}