This is a simple implementation of a discord music bot. Can be used as a skeleton, or improved upon.
Usage
-
create a discord application and assign a bot to it.
-
authorize your bot to your desired channel through the discord app interface
-
ensure you have the correct version of python installed.
-
pip install -r requirements.txt
-
adjust config.py
-
python bot.py
Bot commands
-
!play <url>
: Play audio from a youtube url.<url>
can be any valid youtube video, playlist or stream. -
!stop
: Stop playing and leave the channel.
Requirements
-
python 3.6.6
-
ffmpeg