Skip to content

Commit

Permalink
twitch-status bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Bacon-Fixation committed Oct 4, 2023
1 parent c869569 commit 11cbe2e
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions apps/bot/src/commands/twitch/twitch-status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,6 @@ export class TwitchStatusCommand extends Command {
token: client.twitch.auth.access_token,
user_ids: [user.id]
});
const notGames = [
'Software and Game Development',
'Just Chatting',
'Retro',
'Art',
'Crypto',
'Makers & Crafting'
];
let gameOrTopic = ':video_game: Game';
if (notGames.includes(stream[0].game_name ?? stream[0].game_name))
gameOrTopic = ':film_frames: Topic';

let baseEmbed = new EmbedBuilder({
author: {
Expand All @@ -64,7 +53,17 @@ export class TwitchStatusCommand extends Command {
token: client.twitch.auth.access_token,
id: stream[0].game_id
});

const notGames = [
'Software and Game Development',
'Just Chatting',
'Retro',
'Art',
'Crypto',
'Makers & Crafting'
];
let gameOrTopic = ':video_game: Game';
if (notGames.includes(stream[0].game_name ?? stream[0].game_name))
gameOrTopic = ':film_frames: Topic';
baseEmbed
.setThumbnail(game.box_art_url.replace('-{width}x{height}', ''))
.setTitle(`Looks like ${user.display_name} is Online!!!`)
Expand Down

0 comments on commit 11cbe2e

Please sign in to comment.