|
|
@ -191,7 +191,7 @@ class Player: |
|
|
|
"steam64": self.requester_steam64}) as session: |
|
|
|
async with session.post(f"{os.getenv('BACKEND_URL')}/api/admin/ban?steam64={self.steam64}&ban_reason={reason}&ban_length={minutes}", ssl=False) as response: |
|
|
|
await response.text() |
|
|
|
if response.status == 200: |
|
|
|
if response.status == 201: |
|
|
|
return "Игрок забанен или уже был в бане" |
|
|
|
if response.status == 404: |
|
|
|
raise NotFoundPlayerOnServer |
|
|
|