Skip to content

Commit

Permalink
fix(getChannelChattersUnofficialAPI): force lowercase channel/bot (#3176
Browse files Browse the repository at this point in the history
)
  • Loading branch information
sogehige committed Jan 14, 2020
1 parent 0c5552f commit 172c748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bot/microservices/getChannelChattersUnofficialAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ export const getChannelChattersUnofficialAPI = async (): Promise<{ modStatus: bo
if (typeof channel === 'undefined') {
throw Error('channel undefined');
} else {
channel = JSON.parse(channel);
channel = JSON.parse(channel).toLowerCase();
}
if (bot) {
bot = JSON.parse(bot);
bot = JSON.parse(bot).toLowerCase();
}

const url = `https://tmi.twitch.tv/group/user/${channel}/chatters`;
Expand Down

0 comments on commit 172c748

Please sign in to comment.