From 8c644f7f40b17f7e130d63bd17b9632cfad90c73 Mon Sep 17 00:00:00 2001 From: Paillat Date: Tue, 6 Dec 2022 15:40:57 +0100 Subject: [PATCH] Update code.py --- code/code.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/code/code.py b/code/code.py index 9091019..3deb8ff 100644 --- a/code/code.py +++ b/code/code.py @@ -399,9 +399,6 @@ async def on_message(message): presence_penalty=float(presence_penalty), stop=[" Human:", " AI:", "AI:", "Human:"] ) #send the response - #wait a random amount of time between 0 and 2 seconds in order to make the bot look more human - #dont show that the bot is typing anymore - await asyncio.sleep(random.randint(0, 2)) if response["choices"][0] ["text"] != "": #check if tts is enabled in the database c.execute("SELECT tts FROM data WHERE guild_id = ?", (message.guild.id,))