Skip to content

Commit

Permalink
fix(emotes): check token validity before api call
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Mar 16, 2023
1 parent df3507f commit 3de298d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/emotes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ class Emotes extends Core {
}

async fetchEmotesGlobal () {
const botUsername = variables.get('services.twitch.botUsername') as string;
if (botUsername.length === 0) {
const botTokenValid = variables.get('services.twitch.botTokenValid') as boolean;
if (botTokenValid) {
return;
}
this.fetch.global = true;
Expand Down

0 comments on commit 3de298d

Please sign in to comment.