From a791c27fc308e3ef95ed9de33cf3843c98a77059 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 29 Feb 2024 17:14:06 -0500 Subject: [PATCH] fix(pterodactyl): fixed broken debug statement --- pterodactyl/pterodactyl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index 78b90b8..a5e3e91 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -143,7 +143,8 @@ class Pterodactyl(commands.Cog): webhook = await channel.create_webhook(name="Pterodactyl Chat") await webhook.send(content=message, username=username, avatar_url=avatar_url) self.logger.debug("Chat message sent to Discord") - self.logger.debug("Chat channel not set. Skipping sending chat message to Discord") + else: + self.logger.debug("Chat channel not set. Skipping sending chat message to Discord") def get_task(self): return self.bot.loop.create_task(self.establish_websocket_connection(), name="Pterodactyl Websocket Connection")