Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coslynx/discord-sound-sharing-bot
Project: Melodic Discord Bot for Music Play. Created at https://spectra.codes, which is owned by @Drix10
https://github.com/coslynx/discord-sound-sharing-bot
code-generation code-quality community-building developer-tools devops discord-bot discordjs express ffmpeg javascript machine-learning mongodb music-playback nodejs playlist-support queue-management software-development user-engagement volume-control ytdl-core
Last synced: 4 days ago
JSON representation
Project: Melodic Discord Bot for Music Play. Created at https://spectra.codes, which is owned by @Drix10
- Host: GitHub
- URL: https://github.com/coslynx/discord-sound-sharing-bot
- Owner: coslynx
- Created: 2024-08-02T07:54:52.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-02T08:02:20.000Z (6 months ago)
- Last Synced: 2024-11-17T02:38:13.502Z (2 months ago)
- Topics: code-generation, code-quality, community-building, developer-tools, devops, discord-bot, discordjs, express, ffmpeg, javascript, machine-learning, mongodb, music-playback, nodejs, playlist-support, queue-management, software-development, user-engagement, volume-control, ytdl-core
- Language: JavaScript
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
discord-sound-sharing-botA powerful Discord bot for seamless music playback and community engagement.
Developed with the software and tools below.
## π Table of Contents
- π Overview
- π¦ Features
- π Structure
- π» Installation
- ποΈ Usage
- π Hosting
- π License
- π Authors## π Overview
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.## π¦ Features
| | 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. |## π Structure
```plaintext
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
```## π» Installation
### π§ Prerequisites
- Node.js
- npm
- Docker
### π Setup Instructions
1. Clone the repository:
- `git clone https://github.com/spectra-ai-codegen/discord-sound-sharing-bot.git`
2. Navigate to the project directory:
- `cd discord-sound-sharing-bot`
3. Install dependencies:
- `npm install`
## ποΈ Usage
### πββοΈ Running the Project
1. Start the development server:
- `npm start`
2. Open your Discord server and invite the bot using appropriate permissions.### βοΈ Configuration
Adjust configuration settings in '.env' for database connections and API keys.## π Hosting
### π Deployment Instructions
You can deploy the bot using various platforms. Hereβs how to do it on Heroku:1. Install the Heroku CLI:
- `npm install -g heroku`
2. Log in to Heroku:
- `heroku login`
3. Create a new Heroku app:
- `heroku create`
4. Deploy the code:
- `git push heroku main`### π Environment Variables
- `DB_HOST`: Database host
- `DB_USER`: Database user
- `DB_PASS`: Database password
## π License
This project is licensed under the [GNU AGPLv3](https://choosealicense.com/licenses/agpl-3.0/).## π₯ Authors
- Drix10 - [GitHub Profile](https://github.com/Drix10)
- Spectra.codes - [Spectra.codes](https://spectra.codes)
π Spectra.Codes
Why only generate Code? When you can generate the whole Repository!