From 60f94c4499da755bd0a4a618be84602d69a5ddce Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 28 Feb 2024 13:05:04 -0500 Subject: [PATCH] fix(pterodactyl): testing a ""solution"" to the websocket closing problem --- pterodactyl/pterodactyl.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index a8a6dd2..ab51b70 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -74,10 +74,10 @@ class Pterodactyl(commands.Cog): if json.loads(message)['event'] == 'auth success': self.logger.debug("Authentication successful") - if json.loads(message)['event'] == 'console output' and await self.config.console_channel() is not None: - channel = self.bot.get_channel(await self.config.console_channel) - if channel is not None: - await channel.send(json.loads(message)['args'][0][:1900]) + # if json.loads(message)['event'] == 'console output' and await self.config.console_channel() is not None: + # channel = self.bot.get_channel(await self.config.console_channel) + # if channel is not None: + # await channel.send(json.loads(message)['args'][0][:1900]) #TODO - Add pagification for long messages to prevent Discord API errors except websockets.exceptions.ConnectionClosed as e: self.logger.debug("WebSocket connection closed: %s", e)