Introduction


For the introduction, you will download discord.py and install it with pip in the command prompt. Click here to go to the download page. When you are on the download page, then scroll down or simply click the download button.



After you have downloaded discord.py then put it in your python\script folder. Eg: 'C:\Users\adamk\AppData\Local\Programs\Python\Python36-32\Scripts'
When you have put the file inside the folder go and do win+r and run cmd.




Press OK and it should open the command prompt. Then you need to access the folder python\script. Eg: > 'cd C:\Users\adamk\AppData\Local\Programs\Python\Python36-32\Scripts' After that you should be inside the folder. You are going to have to write 'pip install discord.py-0.16.12.tar.gz' and press enter.


To see if it has installed successfully open Python Shell and do import discord. If it is successful and it doesn't show any errors, you are good to go. If you do get an error please write it in the comments.


The second module I recommend installing is 'asyncio-3.4.3.tar.gz' Click here to go to the download page. Then like last time scroll down or click the download button. The one I downloaded was the last one. Install it and do the same thing you done with discord.py. Put it in the python\script folder and run cmd (command prompt) and go to your folder 'cd C:\Users\adamk\AppData\Local\Programs\Python\Python36-32\Scripts'. Then 'pip install asyncio-3.4.3.tar.gz' After you installed it you going to have to check it so do 'import asyncio' If it works and you get no errors you are good to go. However you are going to need two more things if you want to make your discord bot play music in a voice chat. To play music you are going to need FFMPEG. Link to FFMPEG choose the appropriate one for you. Note the link is for windows.


Once you have downloaded this you are going to have to put it in your PATH. To do that, right click the windows button, then open 'system'. When you do that open 
'system info' then 'Advanced system settings', 'Environment Variables...'. Once its opened you have to find your PATH inside your 'system variables'. Then EDIT it and add a new path to your FFMPEG\bin. Eg. 'C:\Users\adamk\Desktop\ffmpeg\bin'.You will have to then 'Edit text' and add the path (eg. C:\Users\adamk\Desktop\ffmpeg\bin) with a ; at the end of it. Then restart your pc! To see if you have done it right, open cmd and do 'ffmpeg -version'. It should show the version if not, you have done it wrong. If so please repeat the process until it works.



Another module is 'youtube-dl.exe' and you are going to have to download everything it tells you to. After that check if it works by importing it into the python shell 'import youtube_dl'. Just incase you should download asyncio. Your going to have to download it in the same way you download and installed discord.py. Then you check if you done it right by doing 'import asyncio'. And this should be it! You should have FFMPEG, discord.py, asyncio and youtube_dl.

Comments