properly check if message isn't sent from bots

This commit is contained in:
phixxy 2024-11-05 17:38:17 -08:00
parent 487d91ba2e
commit 9228c9a661

View file

@ -31,7 +31,7 @@ class MessageXP(BotBaseCog):
async def on_message(self, message: discord.Message): async def on_message(self, message: discord.Message):
try: try:
author_id = message.author.id author_id = message.author.id
if author_id == self.bot_id: if message.author.bot:
return return
else: else:
#check if file exists #check if file exists