From 53e358853ee03f28637741286518735ed145f6ea Mon Sep 17 00:00:00 2001 From: powermaker450 Date: Wed, 24 Jul 2024 16:54:32 -0400 Subject: [PATCH] Different console log if data is non existent --- src/bot.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bot.ts b/src/bot.ts index 4ddced6..0097818 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -39,7 +39,12 @@ if (!allVarsFilled) { // Define the initial system message for the LLM. 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]";