Add Pterodactyl cog #19

Merged
cswimr merged 139 commits from pterodactyl into main 2024-03-01 23:07:42 -06:00
Showing only changes of commit 07e2497aac - Show all commits

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]