Different console log if data is non existent

This commit is contained in:
powermaker450 2024-07-24 16:54:32 -04:00
parent b257da540e
commit 53e358853e

View file

@ -39,7 +39,12 @@ if (!allVarsFilled) {
// Define the initial system message for the LLM. // Define the initial system message for the LLM.
const session = new GuildData(checkFile("./messages.json", "utf-8")); const session = new GuildData(checkFile("./messages.json", "utf-8"));
console.log("Our conversation is:", session);
session.data.toString()
? console.log("Our conversation is:", session.data)
: console.log(
"Looks like we're starting fresh, no previous chat history was found.",
);
const THINKING = "[md]`Thinking...`[/md]"; const THINKING = "[md]`Thinking...`[/md]";