Skip to content

Commit

Permalink
refactor(discord): force 404 image on offline stream (#3636)
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed May 4, 2020
1 parent 5b6ea7e commit 5ac531f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bot/integrations/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ class Discord extends Integration {
{ name: 'Total Views', value: api.stats.currentViews, inline: true},
{ name: 'Followers', value: api.stats.currentFollowers, inline: true},
]);
this.embed.setImage(`https://static-cdn.jtvnw.net/ttv-static/404_preview-1920x1080.jpg?${Date.now()}`);

if (oauth.broadcasterType !== '') {
this.embed.addField('Subscribers', api.stats.currentSubscribers, true);
Expand Down

0 comments on commit 5ac531f

Please sign in to comment.