forked from MTSR/telegram
Added "status" command to get the server status
This commit is contained in:
parent
04e404f2e5
commit
3593f711e8
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user