Skip to content

Commit

Permalink
updating nadeo Protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
Hornochs committed Jan 23, 2025
1 parent 41cb7cb commit 7fde13d
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions discordgsm/protocols/nadeo.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,17 @@ async def query(self):
})

result: GamedigResult = {
"name": status.server.get("Name", ""),
"map": status.map.get("Name", ""),
"password": bool(status.server.get("Password", False)),
"name": status.server_options.name,
"map": status.map_info.name,
"password": status.server_options.password,
"numplayers": len(status.players),
"numbots": 0,
"maxplayers": int(status.server.get("CurrentMaxPlayers", 0)),
"maxplayers": status.server_options.max_players,
"players": players,
"bots": None,
"bots": [],
"connect": f"{host}:{port}",
"ping": ping,
"raw": {
"version": status.version,
"server": status.server,
"map": status.map
}
"raw": status.server_options.__dict__
}

return result

0 comments on commit 7fde13d

Please sign in to comment.