diff --git a/src/config.ts b/src/config.ts index 9445530..9f7a4c5 100644 --- a/src/config.ts +++ b/src/config.ts @@ -16,7 +16,7 @@ export const matrixBotPassword = process.env.MATRIX_BOT_PASSWORD as string; /** ChatGPT specific stuff */ export const openAiEmail = process.env.OPENAI_EMAIL as string; export const openAiPassword = process.env.OPENAI_PASSWORD as string; -export const isGoogleLogin = (process.env.IS_GOOGLE_LOGIN.toLowerCase() === "true") as boolean; +export const isGoogleLogin = process.env.IS_GOOGLE_LOGIN && process.env.IS_GOOGLE_LOGIN.toLowerCase() === "true"; if(accessToken === undefined) { console.error("MATRIX_ACCESS_TOKEN env variable is undefined");