From de5d0194c8ae099d927ecf93237f79960dd741a8 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 29 Feb 2024 21:51:18 -0500 Subject: [PATCH] fix(pterodactyl): don't send chat messages to minecraft containing bot commands --- pterodactyl/pterodactyl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index 4312e1f..e604ed7 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -182,7 +182,7 @@ class Pterodactyl(commands.Cog): await self.client._session.close() # pylint: disable=protected-access @commands.Cog.listener() - async def on_message(self, message: discord.Message): + async def on_message_without_command(self, message: discord.Message): if message.channel.id == await self.config.console_channel() and message.author.bot is False: self.logger.debug("Received console command from %s: %s", message.author.id, message.content) await message.channel.send(f"Received console command from {message.author.id}: {message.content[:1900]}")