Skip to content

Commit

Permalink
Update EOS protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Feb 8, 2024
1 parent 3a7967e commit 27b44ec
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions discordgsm/protocols/asa.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ async def query(self):
settings = dict(info.get("settings", {}))

result: GamedigResult = {
"name": attributes.get("CUSTOMSERVERNAME_s", "Unknown Server"),
"map": attributes.get("MAPNAME_s", "Unknown Map"),
"name": attributes.get("CUSTOMSERVERNAME_s", ""),
"map": attributes.get("MAPNAME_s", ""),
"password": attributes.get("SERVERPASSWORD_b", False),
"numplayers": info.get("totalPlayers", 0),
"numbots": 0,
"maxplayers": settings.get("maxPublicPlayers", 0),
"players": None,
"bots": None,
"connect": attributes.get("ADDRESS_s", "") + ":" + str(port),
"connect": f"{host}:{port}",
"ping": ping,
"raw": info,
}
Expand Down
4 changes: 2 additions & 2 deletions discordgsm/protocols/palworld.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ async def query(self):
settings = dict(info.get("settings", {}))

result: GamedigResult = {
"name": attributes.get("NAME_s", "Unknown Server"),
"map": "",
"name": attributes.get("NAME_s", ""),
"map": attributes.get("MAPNAME_s", ""),
"password": attributes.get("ISPASSWORD_b", False),
"numplayers": attributes.get("PLAYERS_l", 0),
"numbots": 0,
Expand Down
6 changes: 3 additions & 3 deletions discordgsm/protocols/theisleevrima.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ async def query(self):
settings = dict(info.get("settings", {}))

result: GamedigResult = {
"name": attributes.get("SERVERNAME_s", "Unknown Server"),
"map": attributes.get("MAP_NAME_s", "Unknown Map"),
"name": attributes.get("SERVERNAME_s", ""),
"map": attributes.get("MAP_NAME_s", ""),
"password": attributes.get("PASSWORD_ENABLED_b", False),
"numplayers": info.get("totalPlayers", 0),
"numbots": 0,
"maxplayers": settings.get("maxPublicPlayers", 0),
"players": None,
"bots": None,
"connect": attributes.get("ADDRESS_s", "") + ":" + str(port),
"connect": f"{host}:{port}",
"ping": ping,
"raw": info,
}
Expand Down
2 changes: 1 addition & 1 deletion discordgsm/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.16.1'
__version__ = '2.16.2'

0 comments on commit 27b44ec

Please sign in to comment.