Skip to content

Commit

Permalink
fix comparison?
Browse files Browse the repository at this point in the history
  • Loading branch information
honzajavorek committed Jun 28, 2023
1 parent 7565a15 commit a36b8c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion juniorguru_chick/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async def on_ready() -> None:
@bot.event
async def on_message(message: discord.Message) -> None:
logger.info("Processing message")
if message.author == bot.user:
if message.author.id == bot.user.id:
logger.info("Message sent by the bot itself, skipping")
return
if message.guild is None:
Expand Down

0 comments on commit a36b8c3

Please sign in to comment.