Create a Music Discord bot using Python

Published: 21 February 2022
on channel: Computeshorts
121,673
1.9k

Create a music bot using python, discord py, ffmpeg and youtube_dl. I will guide you through the entire process from the setup stage to actually running the bot on a channel.
Please note that it is now illegal to use discord music bots that rely on youtube, so this video should only be used for learning and personal use.

👕 BEST MERCH - https://computeshorts.creator-spring....

ffmpeg download - https://www.ffmpeg.org/download.html
7Zip - https://www.7-zip.org/download.html
Python - https://www.python.org/downloads/
You need python 3.4 or above to run a discord bot.

My stuff ( these are affiliated )
⌨️ keyboard - https://amzn.to/3aNzRTk
🖲️ mouse - https://amzn.to/3MGLcl6
🎧 headphones - https://amzn.to/3MGasYM
🖥️ monitor - https://amzn.to/3xomJeO

All of the code is available on github https://github.com/pawel02/music_bot
I have also created a Docker image https://hub.docker.com/repository/doc...
I will make a video on how to run this program without any knowledge about coding soon and how you can make it scale infinately. I've included me debugging the code to also show you what that looks like.
╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝

Follow me on twitter:   / computeshorts  
Checkout my blog https://computeshorts.com/blog

Chapters:
0:00 demo
0:17 dependencies
1:40 discord dev console
2:54 entry point
4:12 music bot
5:21 search
5:52 play next
6:39 play music
7:50 play command
9:35 pause command
9:56 resume command
10:14 skip command
10:36 queue command
11:10 clear command
11:37 leave command
11:50 helper_cog
12:31 on ready
13:10 sent to all
13:30 help command
13:55 debugging
15:57 common issues
16:22 github and docker

#discord #bot #music


Watch video Create a Music Discord bot using Python online, duration hours minute second in high quality that is uploaded to the channel Computeshorts 21 February 2022. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 121,673 times and liked it 1.9 thousand visitors.