discord-musicbot-0.0.3.dev20170604
توضیحات
MusicBot bot for Discord.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX |
| نام فایل | discord-musicbot-0.0.3.dev20170604 |
| نام | discord-musicbot |
| نسخه کتابخانه | 0.0.3.dev20170604 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Quentin Vaucher de la Croix & Neto da Silva André |
| ایمیل نویسنده | quentin.vaucher@he-arc.ch & andre.netodasilva@he-arc.ch |
| آدرس صفحه اصلی | https://github.com/andasilva/MusicBot |
| آدرس اینترنتی | https://pypi.org/project/discord-musicbot/ |
| مجوز | https://opensource.org/licenses/BSD-3-Clause |
========
MusicBot
========
.. 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 <https://www.python.org/>`_
- `aiohttp 2.1.0 <https://pypi.python.org/pypi/aiohttp>`_
- `Selenium-Python <https://selenium-python.readthedocs.io/>`_
- `Spotipy <https://spotipy.readthedocs.io/en/latest/>`_
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 <https://sites.google.com/a/chromium.org/chromedriver/downloads>`_
Note that the driver must be in the user's PATH.
Bibliography
============
- `A Discord bot with asyncio <https://tutorials.botsfloor.com/a-discord-bot-with-asyncio-359a2c99e256>`_
- `Discord API Reference <https://discordapp.com/developers/docs/reference>`_
- `Spotify API Reference <https://developer.spotify.com/web-api>`_
- `Travisbot <https://github.com/greut/travisbot>`_
نیازمندی
| مقدار | نام |
|---|---|
| >=2.1.0 | aiohttp |
| ==3.4.3 | selenium |
| >=2.4.4 | spotipy |
| >=1.6.0) | Sphinx |
| xtr | sphinxcontrib-trio; |
| xtr | aiodns; |
| xtr | cchardet; |
| xtr | flake8; |
| xtr | isort; |
| xtr | pycodestyle; |
| xtr | pydocstyle; |
| xtr | rstcheck; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl discord-musicbot-0.0.3.dev20170604:
pip install discord-musicbot-0.0.3.dev20170604.whl
نصب پکیج tar.gz discord-musicbot-0.0.3.dev20170604:
pip install discord-musicbot-0.0.3.dev20170604.tar.gz