forked from cswimr/SeaCogs
fix(pterodactyl): fixed incorrect dictionary key causing an error
This commit is contained in:
parent
e12ded9d42
commit
07e2497aac
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue