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 (#43)
Browse files Browse the repository at this point in the history
Co-authored-by: zleyyij <zleyyij@users.noreply.github.com>
  • Loading branch information
zleyyij and zleyyij authored Nov 9, 2023
1 parent d1151ee commit a1dae5c
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 a1dae5c

Please sign in to comment.