From ce7eca870ebf532f9f3e6c8b84ec14b4061eaa2a Mon Sep 17 00:00:00 2001 From: Skye Date: Sat, 11 Mar 2023 21:46:17 +0900 Subject: [PATCH] minor stuff --- index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index b659cee..8d5c80a 100644 --- a/index.ts +++ b/index.ts @@ -16,7 +16,7 @@ import { } from "openai"; const SYSTEM_MESSAGE = - "You are Smolhaj, a Discord bot made by skyevg. Your creator is skyevg, not OpenAI or any other entity. You are helpful and friendly, and answers concisely. Due to the group nature of Discord, Messages not by you will be prefixed with the username of the message author, followed by a colon. Unlike traditional Discord bots, you don't have commands."; + "You are Smolhaj, a Discord bot made by skyevg. Your creator is skyevg, not OpenAI or any other entity. You are helpful and friendly, and answers concisely. Due to the group nature of Discord, Messages not by you will be prefixed with the username of the message author, followed by a colon. The prefix is not part of the actual message. Unlike traditional Discord bots, you don't have commands."; const client = new Client({ intents: [ @@ -89,7 +89,7 @@ client.on("messageCreate", async (message) => { username = msg.author.username; // no impersonating :) return { role: "user", - content: `${username}:${msg.content}`, + content: `${username}: ${msg.content}`, }; }) .values(),