From 0f197addb0c1a23fffe15dbfaa5c6adb7ed0990d Mon Sep 17 00:00:00 2001 From: esefxdz Date: Tue, 30 Jun 2026 12:22:04 +0300 Subject: [PATCH] fixed double prompt issue --- ai/ai_roleplay.py | 2 +- main.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ai/ai_roleplay.py b/ai/ai_roleplay.py index 9334527..0ec5edf 100644 --- a/ai/ai_roleplay.py +++ b/ai/ai_roleplay.py @@ -249,7 +249,7 @@ class AIRoleplay(commands.Cog): return # ensure commands always work - await self.bot.process_commands(message) + # (Removed: bot processes commands automatically by default, calling it here caused double execution) mentioned = self.bot.user in message.mentions in_active = message.channel.id in self.active_channels diff --git a/main.py b/main.py index a75ff22..8553af8 100644 --- a/main.py +++ b/main.py @@ -18,6 +18,7 @@ intents.members = True bot = commands.Bot(command_prefix='!', intents=intents, help_command=None) +# Telegram → Discord forwarder = TelegramForwarder(token=os.getenv('TELEGRAM_BOT_TOKEN')) if os.getenv('TELEGRAM_GROUP_ID') and os.getenv('DISCORD_WEBHOOK_URL'): forwarder.add_route(int(os.getenv('TELEGRAM_GROUP_ID')), os.getenv('DISCORD_WEBHOOK_URL'))