MusicBot's documentation
=========================
.. toctree::
:maxdepth: 2
:caption: Contents:
.. image:: https://travis-ci.org/andasilva/MusicBot.svg?branch=master
:target: https://travis-ci.org/andasilva/MusicBot
:alt: Build Status
.. image:: https://img.shields.io/pypi/dd/discord-musicbot.svg
:target: https://pypi.python.org/pypi/discord-musicbot
:alt: PyPi Downloads
.. image:: https://img.shields.io/github/stars/andasilva/musicbot.svg
:target: https://github.com/andasilva/musicbot/stargazers
:alt: GitHub Stars
.. image:: https://readthedocs.org/projects/musicbot/badge/?version=latest
:target: http://musicbot.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
Discord bot made with Python which is aimed to control Spotify.
Getting started
================
Explanations for setting up and running the bot.
Requirements
------------
- `Python 3.6 `_
- `aiohttp 2.1.0 `_
- `Selenium-Python `_
- `Spotipy `_
Installation
------------
.. code-block:: console
$ pip install discord-musicbot
Running
-------
.. code-block:: console
$ python -m musicbot
If you entered wrong user credentials, you can restart
the configuration as follows:
.. code-block:: console
$ python -m musicbot reset
Configuration
-------------
At the first start of the bot, some configurations questions
are asked to the user from command line. These are the following:
- Channel ID of the bot
- Discord token
- Spotify token
- Spotify Client ID/Secret
Once they're configured, there's no need to configure them again.
webdriver
---------
The bot may use a chrome webdriver in order to manage the Spotify app by itself.
The driver can be found here: `Chrome webdriver `_
Note that the driver must be in the user's PATH.
Bibliography
============
- `A Discord bot with asyncio `_
- `Discord API Reference `_
- `Spotify API Reference `_
- `Travisbot `_
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`