properly check if message isn't sent from bots
This commit is contained in:
parent
487d91ba2e
commit
9228c9a661
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ class MessageXP(BotBaseCog):
|
|||
async def on_message(self, message: discord.Message):
|
||||
try:
|
||||
author_id = message.author.id
|
||||
if author_id == self.bot_id:
|
||||
if message.author.bot:
|
||||
return
|
||||
else:
|
||||
#check if file exists
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue