https://github.com/gituser12981u2/musicbotdiscord
MusicBotDiscord is an interactive and easy-to-use Discord bot designed to enrich your server's music experience. It allows users to play, control, and manage music from various sources, offering commands for playback, queue management, and more.
https://github.com/gituser12981u2/musicbotdiscord
bot discord-api discord-bot discordjs javascript music-bot music-bot-discord music-playback nodejs
Last synced: 2 months ago
JSON representation
MusicBotDiscord is an interactive and easy-to-use Discord bot designed to enrich your server's music experience. It allows users to play, control, and manage music from various sources, offering commands for playback, queue management, and more.
- Host: GitHub
- URL: https://github.com/gituser12981u2/musicbotdiscord
- Owner: gituser12981u2
- License: mit
- Created: 2023-12-30T22:10:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-19T05:31:56.000Z (12 months ago)
- Last Synced: 2025-02-06T00:37:04.949Z (4 months ago)
- Topics: bot, discord-api, discord-bot, discordjs, javascript, music-bot, music-bot-discord, music-playback, nodejs
- Language: JavaScript
- Homepage:
- Size: 51.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
- Node.js (latest version recommended)
- A Discord Bot Token ([Guide to creating a Discord Bot](https://discordjs.guide/preparations/setting-up-a-bot-application.html))
- FFMPEG installed and available in your system's PATH ([FFMPEG Installation Guide](https://ffmpeg.org/download.html))### Installation
1. Clone the repository:
```bash
git clone https://github.com/gituser12981u2/MusicBotDiscord.git
```
then
```bash
cd MusicBotDiscord
```2. Install dependencies
```bash
npm install
```3. Install FFMPEG:
- macOS:
```bash
brew install ffmpeg
```- Windows:
Follow the instructions on [FFMPEG download page](https://ffmpeg.org/download.html) to download the executable and add it to your PATH.- Linux:
```bash
sudo apt install ffmpeg
```### Configuration
1. Copy .env.example to .env:
```bash
cp .env.example .env
```2. Add your Discord Bot token to the .env file:
```bash
DISCORD_BOT_TOKEN=your_discord_bot_token_here
```### Running the Bot
- Start the bot using Node.js:
```bash
npm start
```## Commands
- !play : 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.