diff --git a/cogs/gpt_3_commands_and_converser.py b/cogs/gpt_3_commands_and_converser.py index 5d1d57e..9ce8748 100644 --- a/cogs/gpt_3_commands_and_converser.py +++ b/cogs/gpt_3_commands_and_converser.py @@ -589,12 +589,11 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"): ctx = self.redo_users[after.author.id].ctx await response_message.edit(content="Redoing prompt 🔄...") - edited_content = after.content + 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: - edited_content = await self.replace_mention(after, edited_content) # Remove the last two elements from the history array and add the new : prompt self.conversation_threads[ after.channel.id