1
0
forked from MTSR/telegram

Added "status" command to get the server status

This commit is contained in:
neko259 2019-01-17 20:22:25 +02:00
parent 04e404f2e5
commit 3593f711e8

View File

@ -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)