Skip to content

Twitch

Displays twitch streams that are currently live on Twitch.tv.

If you wish to see top live streams:

  1. Follow the steps here to create a twitch app.
  2. Save your clientId and clientSecret in your configuration file.

If you wish to see your followed live streams:

  1. Perform the previous steps and continue from here until you receive a userAccessToken and userRefreshToken.
  2. Get your twitch userId from this site.
  3. Check which redirectURI you have for your app at twitch developer console.
  4. Save your userAccessToken, userRefreshToken, userId and redirectURI in your configuration file.

Configuration

twitch:
  enabled: true
  position:
    top: 1
    left: 1
    height: 1
    width: 2
  streams: "top"
  clientId: "client id" 
  clientSecret: "client secret"
  userAccessToken: "user access token"
  userRefreshToken: "user refresh token"
  redirectURI: "http://localhost:3000"
  userId: 123456789

Attributes

Name Value
streams
Which streams to display, top or followed. Default: top
clientId
Client ID of your twitch app.
clientSecret
Client secret of your twitch app.
userAccessToken
User access token gotten from accepting your twitch app. Required to fetch followed streams.
userRefreshToken
User refresh token gotten from accepting your twitch app. Required to fetch followed streams.
redirectURI
The redirect URI set for your twitch app. Required to fetch followed streams.
userId
Your twitch user ID. Required to fetch followed streams.

Keyboard

Key Action
/ Open/close the widget's help modal
[esc] Cancel the selection
[return] Open the selected stream in the browser
s Open the selected stream via streamlink (https://github.com/streamlink/streamlink)
Select the next item in the list
Select the previous item in the list

Source Code

https://github.com/wtfutil/wtf/tree/master/modules/twitch