Python Script using the Package spotipy to add songs requested by Twitch viewers to the queue. This is possible by using Streamer.Bot
- Have Streamer.Bot set up
- Python
- Spotify Account (Premium if you want use the Songrequest Feature)
- Spotify Songrequests [with Spotify Premium only]
- current Spotify Song
- skip Spotify Song
- previous Spotify Song
- change Volume of Spotify
Clone the repository or download the ZIP and unzip it
- Create an App at the Spotify Developer Application
- Copy the client ID and the client secret from the application.
- In "edit Setting" add the redirect URI "http://localhost:8090" and click on save
- Duplicate the
.env.example
and name it.env
- Set in the
.env
file your client id and client secret of your Spotify application
- Install spotipy with pip:
pip install spotipy
- Install dotenv with pip:
pip install python-dotenv
- Copy the string of the streamerbotImportString File and import it into Streamer.Bot
- In the "Setup" Action you must set the path of the
scripts
folder of this repository - In the "Input" Action you must set the path of the
input.txt
of this repository - In the "Output" Action you must set the path of the
output.txt
of this repository - Use the commands or create a custom reward
Now as soon as who use your command or redeems the reward and sends in a song name or Spotify link, this song should have been added to your queue.
I want to make this extremely clear, it is down to yourself to seek permission with the relevant providers (Spotify and Twitch) for more information and to determine whether you have the relevant licenses and/or permissions to play Spotify music on your stream. I accept no reliability or responsibility for any action either vendor may take, you do so at your own risk.