Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
fix: updated google api key paths
Browse files Browse the repository at this point in the history
  • Loading branch information
zleyyij authored and zleyyij committed Nov 9, 2023
1 parent be7eb45 commit 0c96ca9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 0c96ca9

Please sign in to comment.