Skip to content

Project: Melodic Companion for Discord Fun. Created at https://spectra.codes, which is owned by @Drix10

Notifications You must be signed in to change notification settings

coslynx/discord-music-stream-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


discord-music-stream-bot

A Discord bot for seamless music playback and community engagement.

Developed with the software and tools below.

git-last-commit GitHub commit activity GitHub top language

📑 Table of Contents

  • 📍 Overview
  • 📦 Features
  • 📂 Structure
  • 💻 Installation
  • 🏗️ Usage
  • 🌐 Hosting
  • 📄 License
  • 👏 Authors

📍 Overview

The discord-music-stream-bot project provides a comprehensive solution for playing music in Discord voice channels, enhancing social interaction among users by integrating music playback from various platforms like YouTube and SoundCloud.

📦 Features

Feature Description
🎶 Music Playback Support playing music from various sources with commands to play, pause, skip, and stop, ensuring smooth playback.
📃 Playlist Management Allows users to create and manage their playlists and queue songs for continuous playback without interruptions.
🔍 Search Functionality Users can search for songs directly from the chat with autocomplete suggestions for quick results.
🔊 Volume Control Provides users the ability to adjust playback volume easily for personalized listening experiences.
⚖️ Admin Controls Exclusive commands for server moderators to manage music playback and ensure a positive listening environment.
📜 Play History Lets users access recently played tracks, fostering memorable shared experiences within the server.
🌍 Multi-language Support The bot supports multiple languages for a broader user base and accessibility.
🛠️ Custom Commands Users can create personalized commands for unique interactions and enhance community engagement.
👤 Bot Presence Management Customizable presence messages to indicate when the bot is playing music or idle, enhancing visibility in the voice channel.

📂 Structure

discord-music-stream-bot/
├── commands/
│   ├── play.js
│   ├── pause.js
│   ├── skip.js
│   ├── stop.js
│   ├── queue.js
│   ├── search.js
│   ├── volume.js
│   ├── playlists.js
│   └── help.js
├── events/
│   ├── message.js
│   ├── guildMemberAdd.js
│   ├── guildMemberRemove.js
│   └── ready.js
├── services/
│   ├── musicService.js
│   ├── queueService.js
│   ├── playlistService.js
│   └── userService.js
├── models/
│   ├── userModel.js
│   ├── playlistModel.js
│   └── songModel.js
├── utils/
│   ├── commandHandler.js
│   ├── logger.js
│   └── errorHandler.js
├── config/
│   ├── env.config.js
│   └── database.config.js
├── routes/
│   ├── api.js
│   └── musicRoutes.js
├── middleware/
│   ├── authentication.js
│   ├── permissions.js
│   └── logging.js
├── .env
└── package.json

💻 Installation

🔧 Prerequisites

  • Node.js
  • npm
  • MongoDB

🚀 Setup Instructions

  1. Clone the repository:
    • git clone https://github.com/spectra-ai-codegen/discord-music-stream-bot.git
  2. Navigate to the project directory:
    • cd discord-music-stream-bot
  3. Install dependencies:
    • npm install

🏗️ Usage

🏃‍♂️ Running the Project

  1. Start the development server:
    • node index.js
  2. Invite the bot to your server and enjoy music in your voice channel!

⚙️ Configuration

Adjust configuration settings in the .env file for API keys and other settings needed for the bot to function properly.

🌐 Hosting

🚀 Deployment Instructions

You can host this bot on platforms like Heroku, DigitalOcean, or any cloud service that supports Node.js applications.

  1. Create a new Heroku app:
    • heroku create
  2. Deploy your code:
    • git push heroku main

🔑 Environment Variables

  • DISCORD_TOKEN: Your Discord bot token
  • MONGODB_URI: Your MongoDB connection URI

📜 License

This project is licensed under the GNU AGPLv3.

👥 Authors

🌐 Spectra.Codes

Why only generate Code? When you can generate the whole Repository!