Skip to content
/ Beat Public

Beat is a free open source discord music bot for playing music from YouTube and Spotify.

Notifications You must be signed in to change notification settings

Knedme/Beat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beat-logo

Beat

Beat is a free open source discord music bot for playing music from YouTube and Spotify. Beat is done on Nextcord.

Bot structure from: https://github.com/BaggerFast/NextcordTemplate

🌌 Current Version

Current bot version is 1.4.2.

📚 Commands

/join

The bot joins to your voice channel.

/play youtube-video-link | spotify-link | search-query

The bot joins to your voice channel and plays music from a link or search query.

/lofi

The bot joins to your channel and plays lofi.

/leave

Leave the voice channel.

/clear

Clears the entire queue and also disables all loops.

/skip

Skips current song.

/skip-to position

Skips to a specific position in the queue.

/pause

Pauses current song.

/resume

Resumes current song if it is paused.

/queue

Shows current queue.

/now-playing

Shows what song is playing now.

/loop

Enables/Disables current track loop.

/loop-queue

Enables/Disables queue loop.

/replay

Resets the progress of the current playing song.

/replay-queue

Resets the progress of the current queue.

/remove position

Removes the specified song from the queue.

/move pos-from pos-to

Moves the specified song to another position in the queue.

/shuffle

Shuffles the entire queue.

/latency

Checks bot's response time to Discord.

/commands

Shows a list of commands.

/info

Shows information about the bot.

⬇️ Getting started

1. Install Python 3.11.6

2. Clone this repo

Install Git and run this command in the terminal:

git clone https://github.com/Knedme/Beat.git

3. Install the dependencies

Run this command in the terminal in the cloned Beat folder:

pip install -r requirements.txt

4. Install the FFmpeg on your OS

5. Get cookies.txt file (not necessary, but recommended)

To do this, just google something like How to get cookies.txt file in <your-browser-name>

6. Create a Spotify application

Follow this link and create there an application.

7. Set the environment variables

Set the environment variables TOKEN, SPOTIFY_CLIENT_ID and SPOTIFY_CLIENT_SECRET.

8. Change the bot config

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).

9. Run the bot

Open terminal in the cloned Beat folder and run the bot:

python run.py

📦 Docker

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

About

Beat is a free open source discord music bot for playing music from YouTube and Spotify.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published