|
@ -230,7 +230,7 @@ class Player: |
|
|
async with aiohttp.ClientSession(cookies={ |
|
|
async with aiohttp.ClientSession(cookies={ |
|
|
"secretkey":os.getenv("BACKEND_SECRETKEY"), |
|
|
"secretkey":os.getenv("BACKEND_SECRETKEY"), |
|
|
"steam64": self.requester_steam64}) as session: |
|
|
"steam64": self.requester_steam64}) as session: |
|
|
async with session.post(f"{os.getenv('BACKEND_URL')}/api/admin/kick?steam64={self.steam64}", ssl=False) as response: |
|
|
async with session.post(f"{os.getenv('BACKEND_URL')}/api/admin/kick?steam64={self.steam64}&reason={reason}", ssl=False) as response: |
|
|
result = await response.text() |
|
|
result = await response.text() |
|
|
if response.status == 200: |
|
|
if response.status == 200: |
|
|
return "Кикнут с серверов" |
|
|
return "Кикнут с серверов" |
|
|