mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 01:06:19 +00:00
🔥 refactor(makeprompt.py): remove unnecessary code that deletes the message after sending an embed
This commit is contained in:
@@ -63,7 +63,6 @@ async def chatgpt_process(
|
|||||||
await message.channel.send(
|
await message.channel.send(
|
||||||
f"{msg.author.mention}", embed=embed, delete_after=10
|
f"{msg.author.mention}", embed=embed, delete_after=10
|
||||||
)
|
)
|
||||||
await message.delete()
|
|
||||||
else: # if the message is not flagged as inappropriate
|
else: # if the message is not flagged as inappropriate
|
||||||
if msg.author.id == self.bot.user.id:
|
if msg.author.id == self.bot.user.id:
|
||||||
role = "assistant"
|
role = "assistant"
|
||||||
|
|||||||
Reference in New Issue
Block a user