Skip to content

Commit

Permalink
Update protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Jan 17, 2024
1 parent dca8223 commit fcef01a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion opengsq/protocols/eos.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async def main_async():
client_secret = 'PP5UGxysEieNfSrEicaD1N2Bb3TdXuD7xHYcsdUHZ7s'
deployment_id = 'ad9a8feffb3b4b2ca315546f038c3ae2'

eos = EOS(host='150.138.77.118', port=10019, timeout=5.0, client_id=client_id,
eos = EOS(host='5.62.115.46', port=7783, timeout=5.0, client_id=client_id,
client_secret=client_secret, deployment_id=deployment_id)
data = await eos.get_info()
print(json.dumps(data, indent=None) + '\n')
Expand Down
4 changes: 2 additions & 2 deletions opengsq/protocols/fivem.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async def _get(self, filename: str) -> dict:
async def get_info(self) -> dict:
return await self._get('info')

async def get_players(self) -> dict:
async def get_players(self) -> list:
return await self._get('players')

async def get_dynamic(self) -> dict:
Expand All @@ -30,7 +30,7 @@ async def get_dynamic(self) -> dict:
import json

async def main_async():
fivem = FiveM(host='45.81.17.148', port=30120, timeout=5.0)
fivem = FiveM(host='144.217.10.12', port=30120, timeout=5.0)
info = await fivem.get_info()
print(json.dumps(info, indent=None) + '\n')
players = await fivem.get_players()
Expand Down

0 comments on commit fcef01a

Please sign in to comment.