A modern Discord music bot built with Discord.js v14, featuring slash commands and Lavalink integration.
- 🔥 Slash Commands Support
- 🎵 High-quality music playback
- 🎯 Easy to use interface
- ⚡ Fast and reliable
- 📋 Queue management
- 🎨 Rich embed messages
- 🔗 Supports:
- YouTube
- Spotify
- SoundCloud
- Direct links
- Node.js 16.9.0 or higher
- Discord.js v14
- Java 13+ (for Lavalink)
- Discord Bot Token with following intents:
- GUILDS
- GUILD_VOICE_STATES
-
Clone the repository
git clone https://github.com/iammonsterbunny/Discord-Music-BOT.git cd Discord-Music-BOT npm install -
Configure the bot
- Rename
config.json.exampletoconfig.json - Fill in your bot token
- Add your guild IDs for slash commands
{ "token": "YOUR_BOT_TOKEN", "guildIds": ["YOUR_GUILD_ID_1", "YOUR_GUILD_ID_2"], "ownerId": "YOUR_DISCORD_USER_ID" } - Rename
-
Set up Lavalink
- Download Lavalink server
- Configure application.yml
- Start Lavalink server
-
Deploy slash commands
node src/deploy-commands.js
-
Start the bot
node src/index.js
| Command | Description |
|---|---|
/play |
Play a song from URL or search |
/pause |
Pause current playback |
/resume |
Resume paused music |
/stop |
Stop playback and clear queue |
/skip |
Skip to next song |
/help |
Show all available commands |
The config.json file supports the following options: