From 07e2497aac5c6198e95851289b81255ec71e136a Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 29 Feb 2024 17:01:00 -0500 Subject: [PATCH] fix(pterodactyl): fixed incorrect dictionary key causing an error --- pterodactyl/pterodactyl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index e3892c9..78b90b8 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -93,7 +93,7 @@ class Pterodactyl(commands.Cog): if chat_message: info = await self.get_info(chat_message['username']) if info is not None: - await self.send_chat_discord(info['username'], info['message'], info['avatar']) + await self.send_chat_discord(chat_message['username'], chat_message['message'], info['data']['player']['avatar']) if json.loads(message)['event'] == 'status': current_status = json.loads(message)['args'][0]