- Play music command
- Check list of queued songs command
- Skip the song playing right now
- Pause a song playing right now
- Resume a song that has been paused
- Leave a voice channel
- Improved help command using embeds
- Modern Pythonic API using
async
andawait
. - Proper rate limit handling.
- 100% coverage of the supported Discord API.
- Optimised in both speed and memory.
- Any contribution of sort is appreciated
- Please follow GitHub's Contibution Guidelines
- If it is a issue, include Issue: {your_issue} in the title
- If it is a feature request, include Feature Request: {your_request} in the title
Python 3.5.3 or higher is required
To install the library without full voice support, you can just run the following command:
# Linux/macOS
python3 -m pip install -U discord.py
# Windows
py -3 -m pip install -U discord.py
Otherwise to get voice support you should run the following command:
# Linux/macOS
python3 -m pip install -U "discord.py[voice]"
# Windows
py -3 -m pip install -U discord.py[voice]
To install the development version, do the following:
$ git clone https://github.com/jeffzy15/discord.py.git
$ cd discord.py
$ python3 -m pip install -U .[voice]
Check requirements.txt to install other necessary libraries
Visit ffmpeg to install ffmpeg (very important)
PyNaCl for voice support
Please note that on Linux installing voice you must install the following packages via your favourite package manager (e.g. apt
, dnf
, etc) before running the above commands:
- libffi-dev (or
libffi-devel
on some systems) - python-dev (e.g.
python3.6-dev
for Python 3.6)
-
Ensure user is in a voice channel to connect the bot
-
Check that author of the command is in same voice channel as the bot to use it
-
Check that the command called is valid:
Command: #skip
if self.vc.is_playing(): self.vc.stop() else: await ctx.send("No music playing!")
Check music.py for more examples