fix(pterodactyl): fixed incorrect dictionary key causing an error
Some checks failed
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 19s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 21s

This commit is contained in:
Seaswimmer 2024-02-29 17:01:00 -05:00
parent e12ded9d42
commit 07e2497aac
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -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]