diff --git a/pterodactyl/websocket.py b/pterodactyl/websocket.py index 6a5113a..5403725 100644 --- a/pterodactyl/websocket.py +++ b/pterodactyl/websocket.py @@ -101,9 +101,9 @@ async def establish_websocket_connection(coginstance: Pterodactyl) -> None: else: await channel.send(f"{achievement_message['username']} has {'completed the challenge' if achievement_message['challenge'] else 'made the advancement'} {achievement_message['achievement']}") - if json.loads(message)['event'] == 'status': + if message['event'] == 'status': old_status = await config.current_status() - current_status = json.loads(message)['args'][0] + current_status = message['args'][0] if old_status != current_status: await config.current_status.set(current_status) if await config.console_channel() is not None: