Music bot for discord written in python.
help
- Shows list of available comands.
join
- Enters current voice channel.
summon
- Moves bot to the current voice channel. If not yet connected, connects to it.
leave
- Leaves current voice channel and clears queue.
vol <value>
- Ajusts the playback volume.
now
- Shows the current track.
pause
- Pauses song playback.
resume
- Continues playing the song.
stop
- Stops playback and clears the queue.
skip
- Vite to skip the song. It takes three votes to pass.
megaskip
- Experemental command. Does not works yet. Skip for admins.
queue
- Shows the playback queue. You can choose one of the pages, each can have up to 10 items.
shuffle
- Shuffles the queue.
remove <id>
- Removes a track from the queue by the entered number.
loop
- Turns on repeat of the current track. !!!WARNING. IT CAN CRASH THE BOT!!! Write again to remove the loop.
play <querry>
- Starts playback. All tracks in the queue will be played. The command allows you to search for tracks by name or by link.
Install python3:
Windows: https://www.python.org/downloads/.
Linux: install it using your favorite package manager in your favorite OS.
Install dependencies:
pip install discord
pip install yt-dlp
pip install PyNaCl
You also need to install ffmpeg:
Windows: https://ffmpeg.org/download.html#build-windows. Just copy all .exe files to project directory.
Linux: Use your favorite package manager(ex. sudo apt install ffmpeg
)
Then create new bot in https://discord.com/developers/applications and paste token to config file.
token = "<token>"
python3 main.py