fix bug with message edits

Kaveen Kumarasinghe 2 years ago
parent 55f18fe93f
commit 189975a3f9

@ -529,6 +529,9 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"):
@discord.Cog.listener()
async def on_message_edit(self, before, after):
if after.author.id == self.bot.user.id:
return
# Moderation
if not isinstance(after.channel, discord.DMChannel):
if (
@ -543,6 +546,7 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"):
Moderation(after, timestamp)
)
if after.author.id in self.redo_users:
if after.id == original_message[after.author.id]:
response_message = self.redo_users[after.author.id].response

Loading…
Cancel
Save