Add Pterodactyl cog #19
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ async def establish_websocket_connection(coginstance: Pterodactyl) -> None:
|
|||
|
||||
async def loop(coginstance: Pterodactyl, websocket: websockets.WebSocketClientProtocol) -> None:
|
||||
current_status = ''
|
||||
while True:
|
||||
while True: # pylint: disable=too-many-nested-blocks
|
||||
message = await websocket.recv()
|
||||
if json.loads(message)['event'] in ('token expiring', 'token expired'):
|
||||
logger.debug("Received token expiring/expired event. Refreshing token.")
|
||||
|
|
Loading…
Reference in a new issue