(self)
Description: Retrieves the status of the server
Description: Retrieves the status of the server
Description : Retrieves the status of the server
def server_status(self):
        """Description: Retrieves the status of the server"""
        self._send(intent=constants.NetworkCommands.check.value)
        message_recieved = self._recieve()
        if message_recieved[
                "intent"] == constants.NetworkCommands.status_ok.value:
            return [message_recieved["players"], message_recieved["matches"]]
        elif message_recieved[
                "intent"] == constants.NetworkCommands.status_full.value:
            raise Exception(constants.Exceptions.net_server_full.value)
        else:
            raise Exception(constants.Exceptions.net_respond_fail.value)
def server_status ( self ) : self . _send ( intent = constants . NetworkCommands . check . value ) message_recieved = self . _recieve ( ) if message_recieved [ "intent" ] == constants . NetworkCommands . status_ok . value : return [ message_recieved [ "players" ] , message_recieved [ "matches" ] ] elif message_recieved [ "intent" ] == constants . NetworkCommands . status_full . value : raise Exception ( constants . Exceptions . net_server_full . value ) else : raise Exception ( constants . Exceptions . net_respond_fail . value )