From 9b153a4799d226dc6179e976999f8553dd8bca69 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 3 Mar 2024 02:01:33 -0500 Subject: [PATCH] fix(pterodactyl): whoops I forgot two --- pterodactyl/websocket.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: