|
|
@ -190,6 +190,7 @@ class Player: |
|
|
|
"secretkey":os.getenv("BACKEND_SECRETKEY"), |
|
|
|
"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: |
|
|
|
return "Игрок забанен или уже был в бане" |
|
|
|
if response.status == 404: |
|
|
|