From 3593f711e8a2c48567c54b44a1976f16ea8a7801 Mon Sep 17 00:00:00 2001 From: neko259 Date: Thu, 17 Jan 2019 20:22:25 +0200 Subject: [PATCH] Added "status" command to get the server status --- commands.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/commands.lua b/commands.lua index e68733b..48ef98a 100644 --- a/commands.lua +++ b/commands.lua @@ -14,3 +14,8 @@ telegram.register_command("players", function(msg) end telegram.send_message(msg.chat.id, "Active players: " .. players) end) + +telegram.register_command("status", function(msg) + telegram.send_message(msg.chat.id, minetest.get_server_status(nil, false)) +end) +