Skip to content

Latest commit

 

History

History
74 lines (60 loc) · 2.05 KB

File metadata and controls

74 lines (60 loc) · 2.05 KB

MusicBotDiscord

Overview

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.

Features

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

Getting Started

Prerequisites

Installation

  1. Clone the repository:
git clone https://github.com/gituser12981u2/MusicBotDiscord.git

then

cd MusicBotDiscord
  1. Install dependencies
npm install
  1. 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

Configuration

  1. Copy .env.example to .env:
cp .env.example .env
  1. Add your Discord Bot token to the .env file:
DISCORD_BOT_TOKEN=your_discord_bot_token_here

Running the Bot

  • Start the bot using Node.js:
npm start

Commands

  • !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.

Contributing

Contributions to MusicBotDiscord are welcome. If you have suggestions or improvements, feel free to fork the repository and submit a pull request.