diff --git a/mod_liveRole.go b/mod_liveRole.go index cef27cb..e632cfb 100644 --- a/mod_liveRole.go +++ b/mod_liveRole.go @@ -111,7 +111,7 @@ func (m modLiveRole) handlePresenceUpdate(d *discordgo.Session, p *discordgo.Pre return } - if u.Host != "twitch.tv" { + if u.Host != "www.twitch.tv" { logger.WithError(err).WithField("url", activity.URL).Warning("Activity is not on Twitch") exitFunc = m.removeLiveStreamerRole return diff --git a/twitch.go b/twitch.go index 624e31b..50b8112 100644 --- a/twitch.go +++ b/twitch.go @@ -129,8 +129,8 @@ func (t twitchAdapter) getAppAccessToken(ctx context.Context) (string, error) { } params := make(url.Values) - params.Set("client_id", "") - params.Set("client_secret", "") + params.Set("client_id", t.clientID) + params.Set("client_secret", t.clientSecret) params.Set("grant_type", "client_credentials") u, _ := url.Parse("https://id.twitch.tv/oauth2/token")