Skip to content

sudheerbhuvana/comet-music-bot

Repository files navigation

Comet Music Bot

A Discord music bot with support for YouTube, Spotify, and SoundCloud. Built with Discord.js v14 and Lavalink.

Features

  • 🎵 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

Setup

Prerequisites

  • Node.js 16.9.0+
  • MongoDB database
  • Lavalink server
  • Discord bot token

Installation

  1. Clone and install dependencies:
git clone https://github.com/sudheerbhuvana/comet.git
cd comet
npm install
  1. Copy .env.example to .env and fill in your values:
cp .env.example .env
  1. Start the bot:
npm start

Docker

Build 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:latest

Notes:

  • Copy .env.example to .env and fill your values. Docker will load everything from .env; no need to pass -e flags.
  • If your Lavalink or MongoDB run on the host, on Linux you may need to replace host.docker.internal with the host's IP or use a user-defined Docker network and service names.

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/my-feature)
  3. Run npm run lint to check code
  4. Commit your changes (git commit -m 'Add feature')
  5. Push to the branch (git push origin feature/my-feature)
  6. Open a Pull Request

License

MIT License - see LICENSE file for details.


Made with ❤️ by Sudheer Bhuvana

About

Comet, An advanced, high-quality Discord music bot with rich features and seamless playback.

Resources

License

Stars

Watchers

Forks

Contributors