Beat is a free open source discord music bot for playing music from YouTube and Spotify. Beat is made using Pycord.
Bot structure from: https://github.com/BaggerFast/NextcordTemplate
Current bot version is 1.4.3.
The bot joins to your voice channel.
The bot joins to your voice channel and plays music from a link or search query.
The bot joins to your channel and plays lofi.
Leave the voice channel.
Clears the entire queue and also disables all loops.
Skips current song.
Skips to a specific position in the queue.
Pauses current song.
Resumes current song if it is paused.
Shows current queue.
Shows what song is playing now.
Enables/Disables current track loop.
Enables/Disables queue loop.
Resets the progress of the current playing song.
Resets the progress of the current queue.
Removes the specified song from the queue.
Moves the specified song to another position in the queue.
Shuffles the entire queue.
Checks bot's response time to Discord.
Shows a list of commands.
Shows information about the bot.
Install Git and run this command in the terminal:
git clone https://github.com/Knedme/Beat.git
Run this command in the terminal in the cloned Beat folder:
pip install -r requirements.txt
To do this, just google something like How to get cookies.txt file in <your-browser-name>
Follow this link and create there an application.
Set the environment variables TOKEN
, SPOTIFY_CLIENT_ID
and SPOTIFY_CLIENT_SECRET
.
Open <beat-folder>/bot/misc/config.py
file in any text editor and define there FFmpeg executable file path and cookies.txt file path (if you have one).
Open terminal in the cloned Beat folder and run the bot:
python run.py
You can also run Beat using Docker:
sudo docker build -t beat:version /your-beat-folder
sudo docker run -d -v /path-to-changed-config:/beat/bot/misc/config.py \
-v /path-to-cookies:/path-to-cookies-in-config -e TOKEN=YOUR_TOKEN \
-e SPOTIFY_CLIENT_ID=YOUR_CLIENT_ID \
-e SPOTIFY_CLIENT_SECRET=YOUR_CLIENT_SECRET beat:version