Merge pull request #1 from bertybuttface/patch-1

Patch 1
This commit is contained in:
bertybuttface 2022-12-29 02:43:50 +00:00 committed by GitHub
commit e5965a45a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = Boolean(process.env.IS_GOOGLE_LOGIN) 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");