Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
S1ro1 committed Nov 6, 2024
1 parent 6a91840 commit 533adfa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion discord-bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ async def on_message(message):
# Ignore messages from the bot itself
if message.author == client.user:
return

logger.info(f"Message received from {message.author} with {len(message.attachments)} attachments")


# Check if the bot is mentioned and there's an attachment
if client.user in message.mentions:
Expand Down Expand Up @@ -211,4 +214,4 @@ async def on_message(message):
# Run the bot
if __name__ == "__main__":
logger.info("Starting bot...")
client.run(os.getenv('DISCORD_TOKEN'))
client.run(os.getenv('DISCORD_TOKEN'))

0 comments on commit 533adfa

Please sign in to comment.