Fixed @everyone and @here bug,

Bot will now only react to direct mentions.
This commit is contained in:
2023-11-24 20:48:50 -05:00
parent 3254b4f744
commit d038962d80

View File

@@ -153,7 +153,8 @@ async def on_message(message):
cleanup_old_threads()
if bot.user.mentioned_in(message):
bot_mention = f'<@{bot.user.id}>'
if message.content.startswith(bot_mention):
clean_message = await process_message(message)
logging.info(f"Received message from {message.author.name}: {clean_message}")