minor stuff

master
Skye 2 years ago
parent 993073a331
commit ce7eca870e
Signed by: me
GPG Key ID: 0104BC05F41B77B8

@ -16,7 +16,7 @@ import {
} from "openai"; } from "openai";
const SYSTEM_MESSAGE = 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({ const client = new Client({
intents: [ intents: [
@ -89,7 +89,7 @@ client.on("messageCreate", async (message) => {
username = msg.author.username; // no impersonating :) username = msg.author.username; // no impersonating :)
return { return {
role: "user", role: "user",
content: `${username}:${msg.content}`, content: `${username}: ${msg.content}`,
}; };
}) })
.values(), .values(),

Loading…
Cancel
Save