mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
Update makeprompt.py
This commit is contained in:
@@ -55,6 +55,7 @@ async def process(self, message):
|
|||||||
return
|
return
|
||||||
if message.content.startswith("-") or message.content.startswith("//"):
|
if message.content.startswith("-") or message.content.startswith("//"):
|
||||||
return
|
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"
|
#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)
|
try : original_message = await message.channel.fetch_message(message.reference.message_id)
|
||||||
except : original_message = None
|
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
|
else: tts = False
|
||||||
await message.channel.send(response, tts=tts)
|
await message.channel.send(response, tts=tts)
|
||||||
else:
|
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)")
|
||||||
|
|||||||
Reference in New Issue
Block a user