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[