gsd 2 years ago
parent
commit
0a623a0d58
  1. 3
      player.py

3
player.py

@ -20,6 +20,7 @@ class Player:
async def GetSteamID(self):
self.steamid = await self.GetSteamIDOfProfile(self.original_request)
print(self.steam64)
async def LoadProfile(self):
self.current = await self.GetProfile(self.steam64)
@ -209,7 +210,7 @@ class Player:
async with aiohttp.ClientSession(cookies={
"secretkey":os.getenv("BACKEND_SECRETKEY"),
"steam64": self.requester_steam64}) as session:
async with session.post(f"{os.getenv('BACKEND_URL')}/api/admin/unban?steam64={self.steam64}", ssl=False) as response:
async with session.delete(f"{os.getenv('BACKEND_URL')}/api/admin/unban?steam64={self.steam64}", ssl=False) as response:
ban_id = await response.text()
if response.status == 200:
return f"Игрок теперь разбанен!"

Loading…
Cancel
Save