- 📍 Overview
- 📦 Features
- 📂 Structure
- 💻 Installation
- 🏗️ Usage
- 🌐 Hosting
- 📄 License
- 👏 Authors
The repository contains a project called "discord-sound-sharing-bot" that provides a comprehensive solution for music playback and social engagement on Discord. Developed using Node.js, React, and various APIs, this bot enhances user interactions through collaborative music experiences.
Feature | Description | |
---|---|---|
🎶 | Music Playback | Ability to play music from trusted sources like YouTube and Spotify in voice channels for shared listening experiences. |
📋 | Queue Management | Users can create, view, and manage a music queue to control playback. |
🔊 | Volume Control | Users can easily adjust playback volume, mute or unmute the bot during conversations. |
⚙️ | Command System | Intuitive commands for playback functions make the bot accessible for all users. |
🎵 | Playlist Support | Users can manage custom playlists and import them from various platforms for a tailored music experience. |
🛠️ | Bot Moderation | Admin commands for managing bot interactions, enhancing server organization. |
🔗 | Cross-Server Functionality | Operates across multiple Discord servers, maintaining consistent playback and control. |
discord-sound-sharing-bot/
│
├── commands/ # Contains bot command logic
│ ├── play.js # Play a requested song
│ ├── pause.js # Pause currently playing music
│ ├── resume.js # Resume paused music
│ ├── stop.js # Stop playback and disconnect
│ ├── skip.js # Skip to the next song in the queue
│ └── queue.js # Manage the song queue
│
├── events/ # Event handlers for Discord interactions
│ ├── message.js # Handle incoming messages
│ ├── guildMemberAdd.js # Actions on new member joining
│ └── ready.js # Bot is ready and operational
│
├── services/ # Core logic for music playback and queues
│ ├── musicService.js # Handles music playback
│ └── queueService.js # Manages the music queue
│
├── models/ # Database models for MongoDB
│ ├── userModel.js # User metadata
│ ├── playlistModel.js # Playlist structures
│ └── songModel.js # Song definitions
│
├── utils/ # Utility functions
│ ├── commandHandler.js # Command parsing and execution
│ └── logger.js # Logging utilities
│
├── config/ # Configuration files
│ ├── env.config.js # Environment variables
│ └── database.config.js # DB connection settings
│
├── routes/ # API route definitions
│ ├── api.js # Main API endpoint definitions
│ └── musicRoutes.js # Music related routes
│
├── middleware/ # Middleware functions for authentication and logging
│ ├── authentication.js # User authentication
│ └── logging.js # Request logging
│
├── .env # Environment configuration
├── package.json # Project dependencies and scripts
└── README.md # Project documentation
- Node.js
- npm
- Docker
- Clone the repository:
git clone https://github.com/spectra-ai-codegen/discord-sound-sharing-bot.git
- Navigate to the project directory:
cd discord-sound-sharing-bot
- Install dependencies:
npm install
- Start the development server:
npm start
- Open your Discord server and invite the bot using appropriate permissions.
Adjust configuration settings in '.env' for database connections and API keys.
You can deploy the bot using various platforms. Here’s how to do it on Heroku:
- Install the Heroku CLI:
npm install -g heroku
- Log in to Heroku:
heroku login
- Create a new Heroku app:
heroku create
- Deploy the code:
git push heroku main
DB_HOST
: Database hostDB_USER
: Database userDB_PASS
: Database password
This project is licensed under the GNU AGPLv3.
- Drix10 - GitHub Profile
- Spectra.codes - Spectra.codes
Why only generate Code? When you can generate the whole Repository!