From a8f60b1aec5c5cc2660f9cd69b7c708b082a0942 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 28 Feb 2024 13:08:24 -0500 Subject: [PATCH] fix(pterodactyl): do not ratelimit yourself --- pterodactyl/pterodactyl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index 398af23..d0cb4ab 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -96,7 +96,7 @@ class Pterodactyl(commands.Cog): @commands.Cog.listener() async def on_message(self, message: discord.Message): - if message.channel.id == await self.config.console_channel(): + if message.channel.id == await self.config.console_channel() and message.author.id != self.bot.user.id: await self.websocket.send(json.dumps({"event": "send command", "args": [message.content]})) @commands.group(autohelp = True, name = "pterodactyl", aliases = ["ptero"])