mirror of
https://github.com/matrixgpt/matrix-chatgpt-bot.git
synced 2024-09-28 20:15:56 +00:00
Fix for when isGoogleLogin undefined
This commit is contained in:
parent
9a4bed608a
commit
0b55624710
@ -16,7 +16,7 @@ export const matrixBotPassword = process.env.MATRIX_BOT_PASSWORD as string;
|
|||||||
/** ChatGPT specific stuff */
|
/** ChatGPT specific stuff */
|
||||||
export const openAiEmail = process.env.OPENAI_EMAIL as string;
|
export const openAiEmail = process.env.OPENAI_EMAIL as string;
|
||||||
export const openAiPassword = process.env.OPENAI_PASSWORD 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) {
|
if(accessToken === undefined) {
|
||||||
console.error("MATRIX_ACCESS_TOKEN env variable is undefined");
|
console.error("MATRIX_ACCESS_TOKEN env variable is undefined");
|
||||||
|
Loading…
Reference in New Issue
Block a user