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

fix: updated google api key paths #43

Merged
merged 1 commit into from
Nov 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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