Ignore self
This commit is contained in:
parent
7aefcf5856
commit
c43efe5801
@ -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()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user