mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 13:34:40 +00:00
Finally fixed this bug. The AI can now play perfectly.
This commit is contained in:
+2
-7
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user