Okay I guess that fixes it?
This commit is contained in:
parent
eaa2337890
commit
0e6dd5fb96
4
index.js
4
index.js
|
@ -273,9 +273,7 @@ if (fs.existsSync(path.join(__dirname, "modPrompt.txt"))) {
|
|||
basePrompt.content = fs.readFileSync("./basePrompt.txt", "utf8").toString();
|
||||
}
|
||||
|
||||
var nsfwPrompt = config.openai.basePrompt
|
||||
// read nsfwPrompt.txt
|
||||
nsfwPrompt.content = fs.readFileSync("./nsfwPrompt.txt", "utf8").toString();
|
||||
var nsfwPrompt = {"role": "system", "name": "System", "content": fs.readFileSync("./nsfwPrompt.txt", "utf8").toString()}; // NSFW prompt for NSFW channels
|
||||
|
||||
// Handle SIGINT gracefully
|
||||
process.on('SIGINT', async () => {
|
||||
|
|
Loading…
Reference in a new issue