From cf27b2f3f96c7f1a5068bd4456558a82eae88a44 Mon Sep 17 00:00:00 2001 From: Michal Tuszowski Date: Fri, 31 Jan 2025 20:08:38 +0100 Subject: [PATCH] Finally fixed this bug. The AI can now play perfectly. --- ai_commands.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/ai_commands.py b/ai_commands.py index a627621..353746e 100644 --- a/ai_commands.py +++ b/ai_commands.py @@ -268,7 +268,7 @@ class Events(commands.Cog): if kondziu_mentioned or "conjurer:" in message_content_lower: async with channel.typing(): - self.logger.debug("Procedura chatu") + self.logger.info("Procedura chatu") message_content_lower = message_content_lower.replace("conjurer: ", "") if message.author.nick: @@ -297,12 +297,7 @@ class Events(commands.Cog): "CONVERSATION", ) - if len(result) < 999: - await message.reply(result) - else: - while len(result) > 999: - await message.reply(result[:999]) - result = result[999:] + await discord_friendly_reply(message, result) if "imaginuje sobie:" in message.content: async with channel.typing(): self.logger.info("Poczatek procedury obrazkowej")