Update makeprompt.py

This commit is contained in:
Paillat
2023-02-01 12:33:04 +01:00
committed by GitHub
parent f27205a2cc
commit 0eaa8c5f01

View File

@@ -55,6 +55,7 @@ async def process(self, message):
return
if message.content.startswith("-") or message.content.startswith("//"):
return
if str(message.user.id) == "646739625661956128": return
#check if the message is in the right channel by comparing the channel id of the message with the list of channels "channels"
try : original_message = await message.channel.fetch_message(message.reference.message_id)
except : original_message = None
@@ -159,4 +160,4 @@ If a user asks for code, just in the answer replace the place where the code exa
else: tts = False
await message.channel.send(response, tts=tts)
else:
await message.channel.send("The AI is not sure what to say (the response was empty)")
await message.channel.send("The AI is not sure what to say (the response was empty)")