From 67546d0705976e0a9332ec36ee857bbde1cfacaa Mon Sep 17 00:00:00 2001 From: Rene Teigen Date: Wed, 11 Jan 2023 12:27:42 +0000 Subject: [PATCH] Cleanup after merge --- cogs/gpt_3_commands_and_converser.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cogs/gpt_3_commands_and_converser.py b/cogs/gpt_3_commands_and_converser.py index 4272c16..a3c1086 100644 --- a/cogs/gpt_3_commands_and_converser.py +++ b/cogs/gpt_3_commands_and_converser.py @@ -622,9 +622,7 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"): await response_message.edit(content="Redoing prompt 🔄...") edited_content = await self.replace_mention(after, after.content) - # If the user is conversing, we need to get their conversation history, delete the last - # ":" message, create a new : section with the new prompt, and then set the prompt to - # the new prompt, then send that new prompt as the new prompt. + if after.channel.id in self.conversation_threads: # Remove the last two elements from the history array and add the new : prompt self.conversation_threads[