Skip to content

Yet another Discord Music Bot using Discord.js v14 and Lavalink v4

License

Notifications You must be signed in to change notification settings

LewdHuTao/MusicBot

Repository files navigation

Discord Music Bot

Features

  • Built using Discord.js v14 and Lavalink v4
  • Supports Slash Commands, Context Commands, and Prefix Commands
  • User-friendly and easy to set up
  • 24/7 Music Playback
  • Customizable Prefix
  • Supports Docker

Supported Sources

YouTube SoundCloud Bandcamp Twitch Vimeo Nico HTTP Mixer

Required Plugins

Note: If you use Lavalink Docker, LavaSrc and Youtube-Source Plugins are already installed. You just need to set up in lavalink/application.yml

Spotify Apple Music Deezer

Requirements

  • Node Version v18.x or higher
  • Lavalink v4
  • MongoDB (You can set up a free MongoDB server here)

Installation

You can run this bot with or without Docker. For an easy setup, use the make command. If make is not available, use run.sh. Ensure Docker is installed on your machine to use the bot with Docker.

Looking for a more involved guide on how to install this bot? Use the installation guide.

Using Make

Make help

Without Make

  • Before using ./run.sh, make sure to run chmod +x ./run.sh.

NoMake Help

Before you start the bot, ensure you have filled out everything in src/config.js.

Command Usage (Docker)

  1. make start or ./run.sh start: Starts the bot with Lavalink using Docker Compose.

Make Start

  1. make start-noll or ./run.sh start-noll: Starts the bot without Lavalink using Docker Compose.

Make Noll

  1. make restart or ./run.sh restart: Restarts the bot.

Make Restart

  1. make stop or ./run.sh stop: Stops the bot.

Make Stop

  1. make clean or ./run.sh clean: Removes Docker containers.

Make Clean

Command Usage (Without Docker)

  1. make start-local or ./run.sh start local: Starts the bot locally on your machine without Docker Compose.

Note: If you use a VPS and start the bot without Docker, make sure to use pm2 to keep the bot online 24/7.

Local Start


Preview

Preview 1 Preview 2 Preview 3 Preview 4

LICENSE

This project is licensed under the ISC License. You are free to use the music bot for any purpose, including making it public or verifying the bot.