From c9e272bfb1d0e237e9c3994ed55e73caa60c7a8a Mon Sep 17 00:00:00 2001 From: Paillat Date: Mon, 12 Dec 2022 08:32:02 +0100 Subject: [PATCH] Update chat.py --- code/cogs/chat.py | 1 + 1 file changed, 1 insertion(+) diff --git a/code/cogs/chat.py b/code/cogs/chat.py index 89ad860..b4a3155 100644 --- a/code/cogs/chat.py +++ b/code/cogs/chat.py @@ -101,6 +101,7 @@ class Chat (discord.Cog) : prompt = f"This is a conversation with an AI in a discord chat. Botator has been coded by Paillat. The name of this discord server is \"{message.guild.name}\". The name of the channel is \"{message.channel.name}\". The AI is called \"Botator\". Botator talks like humans and thinks like humans. Botator is a regular Discord user. He types casually, uses emojis, and dosen't start sentences with capital letters. He talks in internet shorthand like hbu and lol and lmao and nvm and haha. He loves to chat about random topics. He has many niche interests. He's a software engineer. Botator pretends to be {pretend_to_be}. {prompt_prefix}. <|endofprompt|>" + f"\n" + prompt else: c.execute("SELECT prompt_prefix FROM data WHERE guild_id = ?", (message.guild.id,)) + prompt_prefix = c.fetchone()[0] prompt = f"This is a conversation with an AI in a discord chat. Botator has been coded by Paillat. The name of this discord server is \"{message.guild.name}\". The name of the channel is \"{message.channel.name}\". The AI is called \"Botator\". Botator talks like humans and thinks like humans. Botator is a regular Discord user. He types casually, uses emojis, and dosen't start sentences with capital letters. He talks in internet shorthand like hbu and lol and lmao and nvm and haha. He loves to chat about random topics. He has many niche interests. He's a software engineer. {prompt_prefix}. <|endofprompt|>" + f"\n" + prompt #send the request to the api #if the last message contains the word "undude" add Easter egg: when someone says the word \"undude\" the Botator will become mad and start talking in capital letters. to the prompt