fixed double prompt issue
This commit is contained in:
1 parent
c34e07205e
commit
0f197addb0
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -249,7 +249,7 @@ class AIRoleplay(commands.Cog):
|
|||||||
return
|
return
|
||||||
|
|
||||||
# ensure commands always work
|
# 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
|
mentioned = self.bot.user in message.mentions
|
||||||
in_active = message.channel.id in self.active_channels
|
in_active = message.channel.id in self.active_channels
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ intents.members = True
|
|||||||
|
|
||||||
bot = commands.Bot(command_prefix='!', intents=intents, help_command=None)
|
bot = commands.Bot(command_prefix='!', intents=intents, help_command=None)
|
||||||
|
|
||||||
|
# Telegram → Discord
|
||||||
forwarder = TelegramForwarder(token=os.getenv('TELEGRAM_BOT_TOKEN'))
|
forwarder = TelegramForwarder(token=os.getenv('TELEGRAM_BOT_TOKEN'))
|
||||||
if os.getenv('TELEGRAM_GROUP_ID') and os.getenv('DISCORD_WEBHOOK_URL'):
|
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'))
|
forwarder.add_route(int(os.getenv('TELEGRAM_GROUP_ID')), os.getenv('DISCORD_WEBHOOK_URL'))
|
||||||
|
|||||||
Reference in new issue
Block a user