Skip to content

Commit

Permalink
Make [Twitch] a social badge (#6183)
Browse files Browse the repository at this point in the history
  • Loading branch information
PyvesB authored Feb 14, 2021
1 parent bf8c86f commit 2967c67
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion services/twitch/twitch.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const helixSchema = Joi.object({
})

module.exports = class TwitchStatus extends TwitchBase {
static category = 'activity'
static category = 'social'

static route = {
base: 'twitch/status',
Expand All @@ -21,15 +21,18 @@ module.exports = class TwitchStatus extends TwitchBase {
namedParams: {
user: 'andyonthewings',
},
queryParams: { style: 'social' },
staticPreview: {
message: 'live',
color: 'red',
style: 'social',
},
},
]

static defaultBadgeData = {
label: 'twitch',
namedLogo: 'twitch',
}

static render({ user, isLive }) {
Expand Down

0 comments on commit 2967c67

Please sign in to comment.