mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +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:
|
if kondziu_mentioned or "conjurer:" in message_content_lower:
|
||||||
async with channel.typing():
|
async with channel.typing():
|
||||||
self.logger.debug("Procedura chatu")
|
self.logger.info("Procedura chatu")
|
||||||
|
|
||||||
message_content_lower = message_content_lower.replace("conjurer: ", "")
|
message_content_lower = message_content_lower.replace("conjurer: ", "")
|
||||||
if message.author.nick:
|
if message.author.nick:
|
||||||
@@ -297,12 +297,7 @@ class Events(commands.Cog):
|
|||||||
"CONVERSATION",
|
"CONVERSATION",
|
||||||
)
|
)
|
||||||
|
|
||||||
if len(result) < 999:
|
await discord_friendly_reply(message, result)
|
||||||
await message.reply(result)
|
|
||||||
else:
|
|
||||||
while len(result) > 999:
|
|
||||||
await message.reply(result[:999])
|
|
||||||
result = result[999:]
|
|
||||||
if "imaginuje sobie:" in message.content:
|
if "imaginuje sobie:" in message.content:
|
||||||
async with channel.typing():
|
async with channel.typing():
|
||||||
self.logger.info("Poczatek procedury obrazkowej")
|
self.logger.info("Poczatek procedury obrazkowej")
|
||||||
|
|||||||
Reference in New Issue
Block a user