AAAA
This commit is contained in:
parent
b48d16ccda
commit
d9a51549b0
8
index.js
8
index.js
|
@ -77,6 +77,10 @@ client.on("ready", async () => {
|
||||||
if (!m) console.log(`${colors.cyan("[INFO]")} No unauthorized guilds to leave.`);
|
if (!m) console.log(`${colors.cyan("[INFO]")} No unauthorized guilds to leave.`);
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
// Set the bot's status
|
||||||
|
console.log(`${colors.cyan("[INFO]")} Setting status to ${colors.green(`${config.discord.status.type.toLowerCase()} ${config.discord.status.name}`)}`);
|
||||||
|
await client.user.setActivity(config.discord.status);
|
||||||
|
|
||||||
// Log startup time in seconds
|
// Log startup time in seconds
|
||||||
console.log(`${colors.cyan("[INFO]")} Startup took ${colors.green((Date.now() - initTime) / 1000)} seconds.`)
|
console.log(`${colors.cyan("[INFO]")} Startup took ${colors.green((Date.now() - initTime) / 1000)} seconds.`)
|
||||||
});
|
});
|
||||||
|
@ -269,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()};
|
||||||
// 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 () => {
|
||||||
|
|
Loading…
Reference in a new issue