mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 01:06:19 +00:00
Update makeprompt.py
This commit is contained in:
@@ -131,7 +131,10 @@ async def chat_process(self, message):
|
|||||||
await message.channel.send(f"```diff\n-Error: OpenAI API ERROR.\n\n{e}```", delete_after=5)
|
await message.channel.send(f"```diff\n-Error: OpenAI API ERROR.\n\n{e}```", delete_after=5)
|
||||||
break
|
break
|
||||||
#if the ai said "as an ai language model..." we continue the loop" (this is a bug in the chatgpt model)
|
#if the ai said "as an ai language model..." we continue the loop" (this is a bug in the chatgpt model)
|
||||||
if response.choices[0].message.content.lower().find("as an ai language model") != -1: should_break = False
|
if response.choices[0].message.content.lower().find("as an ai language model") != -1:
|
||||||
|
should_break = False
|
||||||
|
#react with a red cross
|
||||||
|
await message.add_reaction("❌")
|
||||||
if response == None: should_break = False
|
if response == None: should_break = False
|
||||||
if should_break: break
|
if should_break: break
|
||||||
await asyncio.sleep(5)
|
await asyncio.sleep(5)
|
||||||
|
|||||||
Reference in New Issue
Block a user