Okay I guess that fixes it?

This commit is contained in:
Christopher Cookman 2023-03-12 16:15:37 -06:00
parent eaa2337890
commit 0e6dd5fb96
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -273,9 +273,7 @@ if (fs.existsSync(path.join(__dirname, "modPrompt.txt"))) {
basePrompt.content = fs.readFileSync("./basePrompt.txt", "utf8").toString(); basePrompt.content = fs.readFileSync("./basePrompt.txt", "utf8").toString();
} }
var nsfwPrompt = config.openai.basePrompt var nsfwPrompt = {"role": "system", "name": "System", "content": fs.readFileSync("./nsfwPrompt.txt", "utf8").toString()}; // NSFW prompt for NSFW channels
// read nsfwPrompt.txt
nsfwPrompt.content = fs.readFileSync("./nsfwPrompt.txt", "utf8").toString();
// Handle SIGINT gracefully // Handle SIGINT gracefully
process.on('SIGINT', async () => { process.on('SIGINT', async () => {