server_info#
Usage:
>>> import acore_soap.api as acore_soap
>>> request = acore_soap.gm.ServerInfoRequest()
>>> soap_response = request.send()
>>> response = acore_soap.gm.ServerInfoResponse.from_soap_response(soap_response)
>>> response.connected_players
1
>>> response.characters_in_world
1
>>> response.server_uptime
3600
- class acore_soap.gm.server_info.ServerInfoResponse(connected_players: int, characters_in_world: int, server_uptime: int)[source]#
Parse the response message of
.server infocommand, extract- Parameters:
connected_players – how many players are logged in.
characters_in_world – how many player
server_uptime – how long the server has been running (in seconds)
- static extract_connected_players(message: str) int[source]#
Extract the number of connected players from the response message.
- static extract_characters_in_world(message: str) int[source]#
Extract the number of characters in the world from the response message.
- static extract_server_uptime(message: str) int[source]#
Extract the server uptime from the response message.
- classmethod from_soap_response(res: SOAPResponse)[source]#
Parse from soap response.