A Discord music bot with support for YouTube, Spotify, and SoundCloud. Built with Discord.js v14 and Lavalink.
- 🎵 Play music from YouTube, Spotify, and SoundCloud
- 🎚️ Audio filters (bass boost, nightcore, 8D, karaoke, etc.)
- 📝 Queue management with playlist support
- 🔁 Loop modes (track, queue, autoplay)
- ⚡ Slash commands and prefix commands
- 🛠️ Custom server prefixes
- 💾 MongoDB integration
- Node.js 16.9.0+
- MongoDB database
- Lavalink server
- Discord bot token
- Clone and install dependencies:
git clone https://github.com/sudheerbhuvana/comet.git
cd comet
npm install- Copy
.env.exampleto.envand fill in your values:
cp .env.example .env- Start the bot:
npm startBuild and run with Docker using your local .env file:
# Build image
docker build -t comet:latest .
# Run container using .env (recommended)
docker run --name comet \
--env-file .env \
--restart unless-stopped \
comet:latestNotes:
- Copy
.env.exampleto.envand fill your values. Docker will load everything from.env; no need to pass-eflags. - If your Lavalink or MongoDB run on the host, on Linux you may need to replace
host.docker.internalwith the host's IP or use a user-defined Docker network and service names.
- Fork the repository
- Create your feature branch (
git checkout -b feature/my-feature) - Run
npm run lintto check code - Commit your changes (
git commit -m 'Add feature') - Push to the branch (
git push origin feature/my-feature) - Open a Pull Request
MIT License - see LICENSE file for details.
Made with ❤️ by Sudheer Bhuvana