High‑quality Discord music bot powered by DisTube and discord.js v14 — YouTube, Spotify, SoundCloud, filters, autoplay, 24/7, request channel, lyrics, and more.
- YouTube, Spotify, and SoundCloud playback
- Slash commands and message commands
- 24/7 voice channel + autoresume
- Rich queue controls: skip, seek, loop, shuffle, move, remove, jump, filters
- Lyrics lookup, request channel system, DJ role
- Works on Replit/VPS, uses DisTube + discord.js v14
-
Clone or download the repository.
-
Install dependencies:
npm install
- Configure the bot in
settings/config.js
and.env
.
{
TOKEN: "BOT_TOKEN",
PREFIX: "BOT_PREFIX",
mongodb : "MONGO_URL"
}
Rename .env.example
to .env
and configure the following keys:
# Discord
TOKEN=
PREFIX=
# Database (optional if using JSON storage)
MONGO_URL=
# Slash commands
# Comma-separated list of guild IDs (for faster, per-guild registration)
GUILD_ID=
# Set to true to register commands globally (may take up to 1 hour to propagate)
SLASH_GLOBAL=false
# Web server
PORT=3000
# Reduce noisy update checks from ytsr/ytdl
YTSR_NO_UPDATE=true
YTDL_NO_UPDATE=true
# Voice diagnostics (optional; set true to print a dependency report on startup)
VOICE_DEBUG_REPORT=false
Notes:
- If you want global slash commands, set
SLASH_GLOBAL=true
. Otherwise, keepGUILD_ID
set (you can provide multiple IDs separated by commas) for instant per‑guild updates. MONGO_URL
enables MongoDB storage via JoshDB’s Mongo provider; if omitted, JSON storage is used.
- Optional native optimizations (Windows/macOS/Linux):
npm install @discordjs/opus zlib-sync@latest erlpack@latest
- Start the bot:
npm start
Dev mode with auto-reload:
npm run dev
If you have any feedback or need assistance, please join our Discord Server.
Contributions are welcome! Please open an issue or PR. For larger changes, start a discussion first.
Please report vulnerabilities privately via GitHub Security Advisories or email.
This project is licensed under the MIT License.
Your support is appreciated! 🌟