diff --git a/mod_presence.go b/mod_presence.go index 6fa039f..eecad2c 100644 --- a/mod_presence.go +++ b/mod_presence.go @@ -42,7 +42,7 @@ func (m *modPresence) Initialize(id string, crontab *cron.Cron, discord *discord "fallback_text", "twitch_channel_id", "twitch_client_id", - "twitch_token", + "twitch_client_secret", ); err != nil { return errors.Wrap(err, "validating attributes") } @@ -63,9 +63,9 @@ func (m modPresence) cronUpdatePresence() { twitch := newTwitchAdapter( // @attr twitch_client_id required string "" Twitch client ID the token was issued for m.attrs.MustString("twitch_client_id", nil), - "", // No client secret used - // @attr twitch_token required string "" Token for the user the `twitch_channel_id` belongs to - m.attrs.MustString("twitch_token", nil), + // @attr twitch_client_secret required string "" Secret for the Twitch app identified with twitch_client_id + m.attrs.MustString("twitch_client_secret", nil), + "", // No User-Token used ) data, err := twitch.GetChannelStreamSchedule( diff --git a/wiki/Home.md b/wiki/Home.md index a6c355f..5eebb46 100644 --- a/wiki/Home.md +++ b/wiki/Home.md @@ -104,7 +104,7 @@ Updates the presence status of the bot to display the next stream | `fallback_text` | ✅ | string | | What to set the text to when no stream is found (`playing `) | | `twitch_channel_id` | ✅ | string | | ID (not name) of the channel to fetch the schedule from | | `twitch_client_id` | ✅ | string | | Twitch client ID the token was issued for | -| `twitch_token` | ✅ | string | | Token for the user the `twitch_channel_id` belongs to | +| `twitch_client_secret` | ✅ | string | | Secret for the Twitch app identified with twitch_client_id | | `cron` | | string | `* * * * *` | When to execute the module | | `schedule_past_time` | | duration | `15m` | How long in the past should the schedule contain an entry |