From f6f0a3176366374d3ab904d9ca49f15026998b03 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 28 Feb 2024 13:22:46 -0500 Subject: [PATCH] fix(pterodactyl): don't log console command executions --- pterodactyl/pterodactyl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index 5ef74da..5a586b7 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -79,7 +79,8 @@ class Pterodactyl(commands.Cog): channel = self.bot.get_channel(await self.config.console_channel()) if channel is not None: content = self.remove_ansi_escape_codes(json.loads(message)['args'][0][:1900]) - await channel.send(content=content) + if content.startswith('['): + await channel.send(content=content) #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)