-
Notifications
You must be signed in to change notification settings - Fork 1
Setup
This guide will you show you how to setup PYMusicBot V2
First install Python and the dependencies before proceeding with the rest of the guide
This bot needs the following packages: discord.py (from Github), PyYAML, PyNaCl, yt-dlp
To install them, run the following commands:
-
Windows:
python -m pip install git+https://github.com/Rapptz/discord.py/ PyYAML PyNaCl yt-dlp -
Linux:
python3 -m pip install git+https://github.com/Rapptz/discord.py/ PyYAML PyNaCl yt-dlp
This bot needs FFmpeg and FFprobe to be in the path environment variable
Here you can find download instructions for FFmpeg and FFprobe
-
Windows: To add them to the path environment variable, you can move both of them in
C:\Windows -
Linux: If you installed FFmpeg or FFprobe from a repository, you should already have them in
/usr/bin(which is meant to be in$PATHalready) otherwise you probably know what you are doing
We need to create a bot account so PYMusicBot V2 can login
Visit the Discord developer portal and follow these steps:
- Click on
New Application - Click on
Botfrom the left sidebar - It will ask you to create a bot, so do that
- Click on
Reset Tokenand copy that token (we will need it shortly after) - Make sure to enable
Server Members Intentas well (underPrivileged Gateway Intents)
We need to now download the files of PYMusicBot
Go to the PYMusicBot repository and then follow these steps:
- Click on the
<> Codebutton - Click on
Download ZIP - Extract the folder
PYMusicBot-mainfrom the ZIP archive (you must extract it as PYMusicBot creates some files)
Warning
It is recommended to not edit any of the python files if you don't know what you are doing (especially Config.py!)
- Go in to the folder you just extracted and create a file called
token.txt, in there, paste the token you have aquired from the Discord developer portal
Note
Make sure there aren't spaces or anything as such other than the token in the file
- Run "Main.py", it should be possible to double click it (Windows only)
- You can now enjoy PYMusicBot! Make sure to check out
config.ymlfor any additional configuration