|
|
@ -304,7 +304,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: |
|
|
|
ban_id = await response.text() |
|
|
|
if response.status == 201: |
|
|
|
if response.status in [201, 200]: |
|
|
|
return f"Игрок теперь забанен! Ид бана: #{ban_id}" |
|
|
|
elif response.status == 202: |
|
|
|
return f"Игрок уже в бане! Ид бана #{ban_id}" |
|
|
|