Skip to content

Commit

Permalink
fix bots able to run cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
greeeen-dev committed Jul 10, 2024
1 parent b7c5cfb commit 9aa5182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge_revolt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9aa5182

Please sign in to comment.