Skip to content
Snippets Groups Projects
Commit 31fac512 authored by dnns01's avatar dnns01
Browse files

fix: $121 - fixed issue, that also sent messages, where the bot was the...

fix: $121 - fixed issue, that also sent messages, where the bot was the author, into the support channel
parent 8e28a347
Branches
No related tags found
No related merge requests found
......@@ -12,6 +12,10 @@ class SupportCog(commands.Cog):
@commands.Cog.listener()
async def on_message(self, message):
if message.author == self.bot.user:
print("hmmm")
return
if type(message.channel) is discord.DMChannel:
channel = await self.bot.fetch_channel(self.channel_id)
files = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment