From 533adfacdd854dfccfb27b8c8f833d1bd3e3051b Mon Sep 17 00:00:00 2001 From: S1ro1 Date: Wed, 6 Nov 2024 22:54:06 +0100 Subject: [PATCH] Test --- discord-bot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/discord-bot.py b/discord-bot.py index 49fd71e..7fba50c 100644 --- a/discord-bot.py +++ b/discord-bot.py @@ -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: @@ -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')) \ No newline at end of file + client.run(os.getenv('DISCORD_TOKEN'))