This is an extension to the MusicBot made by SexualRhinoceros (https://github.com/Just-Some-Bots/MusicBot). That lets you add songs from a Spotify playlist given its URI
- Play any playlist from Spotify using its URI
- Start a radio with a given artist (Pretty much like Spotify radio)
- Maybe more?
- Spotipy
- MusicBot Installed
- python 3.5.1+
- Spotify Account
You will need to create a developer app on Spotify to add the Spotify feature to your Bot To do this visit https://developer.spotify.com/my-applications/#!/ and follow instructions. Keep a note of your Application Client Id and Secret ID. More Details on creating the app can be found on https://spotipy.readthedocs.io/en/latest/#authorized-requests
- Install Spotipy either using pip install spotipy or as specified by Spotipy.
- Fill in Credentials in bot.py (Its at the bottom of the page) and then replace it.
- Add 'spotify' to permissions.ini file (As seen on example_permissions.ini)
- Run your Bot to see if it works.
If it did you should get a URL in the shell whcich you should visit.
It should re-direct you to a new link. Copy this link.
Paste it into the shell (This is part of Spotipy so for any refrence visit https://spotipy.readthedocs.io/en/latest/#authorized-requests) - Thats It! It should work, Hopefuly.
This works by getting a spotify URI then using Spotify API to get all the tracks inside the playlist. Then playing them using the built-in play method. This DOES NOT stream from Spotify. Only gets Track Names and then uses youtube to get the music
###################################### Orginal Instructions ##################################
MusicBot is a Discord music bot written in Python. It plays requested songs and if the queue becomes empty it will play through a list of existing songs.
CLICK HERE to find the guide that suites your operating system.
Commands are listed here.
The main configuration file is config/options.ini
, but is not included. Simply make a copy of example_options.ini
and rename to options.ini
. See example_options.ini
for more information on how to configure it.
CLICK HERE for more details.
Download the bot, set the dependencies up, then run runbot.bat
! (or run.sh
on mac/linux) Read the tutorial if you don't know what to do.
If you have any errors, read the FAQ. If that didn't help, you can ask for assistance on the discord help server. Is is recommended to take screenshots so the developers can see errors.
Some frequently asked questions are listed on the wiki here.