Ignore self

This commit is contained in:
Dustin Pianalto 2018-06-16 00:06:13 -08:00
parent 7aefcf5856
commit c43efe5801

View File

@ -7,7 +7,7 @@ class BotManager:
self.bot = bot self.bot = bot
async def on_message(self, message): async def on_message(self, message):
if message.channel.id == 411586546551095296: if message.channel.id == 411586546551095296 and message.author != message.channel.guild.me:
#Its the bot-invite channel #Its the bot-invite channel
splitted_message = message.content.split(" ") splitted_message = message.content.split(" ")
await message.delete() await message.delete()