Skip to content

Commit

Permalink
events.py: Fix on_message check
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenChen committed Nov 28, 2023
1 parent 6b97429 commit a983208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ async def on_message(self, message: discord.Message):
await self.bot.close()
return
await self.bot.wait_until_all_ready()
if message.author == message.guild.me\
if message.author == message.guild.me or check_staff(self.bot, 'Helper', message.author.id) \
or message.channel.id in self.bot.configuration.nofilter_list:
return
await self.scan_message(message)
Expand Down

0 comments on commit a983208

Please sign in to comment.