Allow autopurge of bot messages

This commit is contained in:
Zeva Rose 2022-12-14 16:07:41 +00:00
parent e65c76b981
commit 8471580517

View file

@ -416,11 +416,11 @@ class MessageEventMixin:
async def on_message(self, event: MessageCreate) -> None:
"""Handle on_message event. Calls other event handlers."""
message = event.message
await self.autopurge(message)
if not isinstance(message.channel, DMChannel) and not message.author.bot:
await self.autoreact(message)
await self.massmention(message)
await self.roleping(message)
await self.autopurge(message)
await self.checks(message)
await self.filters(message)
if not (phish := await self.phishing(message)):