From f0f160429d1bf352f8b70161336fc07771308477 Mon Sep 17 00:00:00 2001 From: Paillat Date: Tue, 15 Aug 2023 10:50:10 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20refactor(makeprompt.py):=20remov?= =?UTF-8?q?e=20unnecessary=20code=20that=20deletes=20the=20message=20after?= =?UTF-8?q?=20sending=20an=20embed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/makeprompt.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/makeprompt.py b/src/makeprompt.py index 525faa6..a9b96ed 100644 --- a/src/makeprompt.py +++ b/src/makeprompt.py @@ -63,7 +63,6 @@ async def chatgpt_process( await message.channel.send( f"{msg.author.mention}", embed=embed, delete_after=10 ) - await message.delete() else: # if the message is not flagged as inappropriate if msg.author.id == self.bot.user.id: role = "assistant"