From 9aa51826bb715840a84c3eb9bec09c79450a07b7 Mon Sep 17 00:00:00 2001 From: "green." <41323182+greeeen-dev@users.noreply.github.com> Date: Wed, 10 Jul 2024 15:50:26 +0200 Subject: [PATCH] fix bots able to run cmds --- bridge_revolt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge_revolt.py b/bridge_revolt.py index 14635bd..fdeaca4 100644 --- a/bridge_revolt.py +++ b/bridge_revolt.py @@ -198,7 +198,7 @@ async def on_message(self, message): is_dm = True if message.content==f'{self.bot.command_prefix}agree': return - elif message.content.startswith(self.bot.command_prefix): + elif message.content.startswith(self.bot.command_prefix) and not message.author.bot: return await self.process_commands(message) if not roomname or is_dm: return