From 0c96ca960136c405927436f1aa94e8a95bbf3044 Mon Sep 17 00:00:00 2001 From: zleyyij Date: Wed, 20 Sep 2023 19:37:30 -0600 Subject: [PATCH] fix: updated google api key paths --- src/modules/google.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/google.ts b/src/modules/google.ts index 9b203c3..5f6f220 100644 --- a/src/modules/google.ts +++ b/src/modules/google.ts @@ -103,8 +103,8 @@ googleModule.registerSubModule( ], async (args, interaction) => { // Key checks - const API_KEY: string | undefined = googleModule.config.ApiKey; - const CSE_ID: string | undefined = googleModule.config.CseId; + const API_KEY: string | undefined = util.botConfig.secrets.google.apiKey; + const CSE_ID: string | undefined = util.botConfig.secrets.google.cseId; if ( [undefined, ''].includes(API_KEY) || @@ -160,9 +160,9 @@ const youtube = new util.RootModule( }, ], async (args, interaction) => { - const API_KEY: string | undefined = googleModule.config.ApiKey; + const API_KEY: string | undefined = util.botConfig.secrets.google.apiKey; - if ([undefined, ''].includes(API_KEY)) { + if ([undefined, '', 'YOUR_GOOGLE_API_KEY_HERE'].includes(API_KEY)) { util.logEvent( util.EventCategory.Warning, 'google',