euro-fly / MusicBot

The MusicBot for Discord (formerly SexualRhinoceros/MusicBot) With Spotify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MusicBot-With-Spotify

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

Current Features

  • Play any playlist from Spotify using its URI
  • Start a radio with a given artist (Pretty much like Spotify radio)
  • Maybe more?

Requirements

  • Spotipy
  • MusicBot Installed
  • python 3.5.1+
  • Spotify Account

How do I add Spotify To My Bot

Notes

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.

Usage

In discord use {pre-fix}spotify spotify:Uri:Format:like:This
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.

Disclaimer

This DOES NOT stream from Spotify. Only gets Track Names and then uses youtube to get the music

###################################### Orginal Instructions ##################################

RhinoBot: The music bot for Discord.

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.

How do I set it up?

CLICK HERE to find the guide that suites your operating system.

Commands

Commands are listed here.

Configuration

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.

Great, now how do I use it?

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.

Rhino Help Server

FAQ

Some frequently asked questions are listed on the wiki here.

About

The MusicBot for Discord (formerly SexualRhinoceros/MusicBot) With Spotify


Languages

Language:Python 97.8%Language:Batchfile 1.3%Language:Dockerfile 0.6%Language:Shell 0.4%