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")