- Customizable Command Usage
- Customizable Command Messages
- Customizable Command Permission (User, Moderator, Broadcaster)
- En/Disable Commands
- Async
- Add Song to Queue via Channel Point Reward
- Pause Spotify Playback via Command
- Start Spotify Playback via Command
- View Current Song via Command (Name, Artist, URL)
- View Current Playlist via Command (Name, Owner, URL)
- Skip Song via Command
- Play previous Song via Command
- Set Volume via Command
- Add Song to Queue via Command
Go to your Spotify Developer Dashboard and log into your Account (if you aren´t already).
Make a note of your Client ID and Client Secret in a text document or something similar, you will need them later.
For this Tutorial we`ll be using http://localhost:8000/spotifyCallback as Redirect URI.
Go to your Twitch Developer Console and log into your Account (if you aren`t already).
For this Bot, you don`t need a redirect URI at Twitch so we can enter something like https://example.com ad hit *
Add*.
Head over to https://twitchtokengenerator.com.
Download the latest Version from Releases.
Config File
[Spotify]
CLIENT_ID = YOUR_SPOTIFY_CLIENT_ID
CLIENT_SECRET = YOUR_SPOTIFY_CLIENT_SECRET
REDIRECT_URI = YOUR_SPOTIFY_REDIRECT_URI
[Webserver]
PORT = 8000
[Twitch]
CLIENT_ID = YOUR_TWITCH_CLIENT_ID
CLIENT_SECRET = YOUR_TWITCH_CLIENT_SECRET
ACCESS_TOKEN = YOUR_TWITCH_ACCESS_TOKEN
CHANNEL_NAME = YOUR_TWITCH_CHANNEL_NAME
[Reward]
ENABLE_REWARD_SONG_REQUEST = true
REWARD_NAME = YOUR_SONG_REQUEST_REWARD_NAME
Commands FIle
{
"pause": {
"usage": "!pause",
"enabled": true,
"message": "Playback was paused successfully. @%user%",
"permission": "MODERATOR"
},
"playlist": {
"usage": "!playlist",
"enabled": true,
"message": "The Playlist %name% from %owner% is currently running. (\"%link%\") @%user%",
"permission": "EVERYONE"
},
"previous": {
"usage": "!previous",
"enabled": true,
"message": "The previous Song was played successfully. @%user%",
"permission": "MODERATOR"
},
"queue": {
"usage": "!queue",
"enabled": true,
"message": "The Song was successfully added to the queue. @%user%",
"permission": "MODERATOR"
},
"skip": {
"usage": "!skip",
"enabled": true,
"message": "The next Song was played successfully. @%user%",
"permission": "MODERATOR"
},
"song": {
"usage": "!song",
"enabled": true,
"message": "%name% by %artist% is currently running. (\"%link%\") @%user%",
"permission": "EVERYONE"
},
"start": {
"usage": "!start",
"enabled": true,
"message": "Playback was resumed successfully. @%user%",
"permission": "MODERATOR"
},
"volume": {
"usage": "!volume",
"enabled": true,
"message": "The volume was successfully set to %volume%. @%user%",
"permission": "MODERATOR"
}
}
PORT/spotify* The Port is your Port defined in the Config File (default = 8000).