MusicBotDiscord is a versatile and user-friendly Discord bot designed to enhance the music listening experience within Discord servers. It allows users to play, control, and enjoy music directly from Discord channels with ease and efficiency.
- Music Playback: Play music from various sources directly in your Discord server.
- Control Functions: Includes commands to play, pause, skip, and manage the music queue.
- Music Commands: Easy-to-use commands for seamless music control.
- Duration Formatting: Utility to format the duration of tracks.
- Node.js (latest version recommended)
- A Discord Bot Token (Guide to creating a Discord Bot)
- FFMPEG installed and available in your system's PATH (FFMPEG Installation Guide)
- Clone the repository:
git clone https://github.com/gituser12981u2/MusicBotDiscord.git
then
cd MusicBotDiscord
- Install dependencies
npm install
- Install FFMPEG:
- macOS:
brew install ffmpeg
-
Windows: Follow the instructions on FFMPEG download page to download the executable and add it to your PATH.
-
Linux:
sudo apt install ffmpeg
- Copy .env.example to .env:
cp .env.example .env
- Add your Discord Bot token to the .env file:
DISCORD_BOT_TOKEN=your_discord_bot_token_here
- Start the bot using Node.js:
npm start
- !play <url_or_search_term>: Play music from a URL or search for a track.
- !queue: Shows the current queue.
- !pause: Pause the current track.
- !resume: Resume playback.
- !skip: Skip to the next track in the queue.
- !disconnect: Stop playback and clear the queue.
Contributions to MusicBotDiscord are welcome. If you have suggestions or improvements, feel free to fork the repository and submit a pull request.