Music bot for discord
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Andrey 567a3a28c4
continuous-integration/drone/push Build is passing Details
Методом 'echo в небо' подобраны нужные символы. Фикс префикса
2 months ago
.drone.yml Методом 'echo в небо' подобраны нужные символы. Фикс префикса 2 months ago
.gitignore Нахардкодил фикс бага с таймаутом, фикс языка, yt_dlp, говно для новога апи дса 2 months ago
Dockerfile Docker fix x2 2 months ago
README.md Update README.md 7 months ago
docker-compose.yml Ну работай 2 months ago
main.py Методом 'echo в небо' подобраны нужные символы. Фикс префикса 2 months ago
requirements.txt Нахардкодил фикс бага с таймаутом, фикс языка, yt_dlp, говно для новога апи дса 2 months ago

README.md

CoSinger

Music bot for discord written in python.

Commands list

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.

Installation

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.

config.py

token = "<token>"

Run

python3 main.py