{"id":15213034,"url":"https://github.com/coslynx/default-project-name","last_synced_at":"2026-02-05T09:40:19.032Z","repository":{"id":251023193,"uuid":"836170579","full_name":"coslynx/default-project-name","owner":"coslynx","description":"Project: Discord Music Bot: Bringing Tunes to Your Server. Created at https://spectra.codes, which is owned by @Drix10","archived":false,"fork":false,"pushed_at":"2024-07-31T09:49:49.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T09:53:30.780Z","etag":null,"topics":["api-integration","api-requests","code-generation","code-quality","community-features","developer-tools","devops","discord-js","discord-music-bot","javascript","lavalink","machine-learning","mongodb","music-playback","node-js","playlist-management","software-development","user-interface","voice-channel-management","web-development"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coslynx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-31T09:43:16.000Z","updated_at":"2024-07-31T09:49:52.000Z","dependencies_parsed_at":"2024-07-31T10:59:51.788Z","dependency_job_id":null,"html_url":"https://github.com/coslynx/default-project-name","commit_stats":null,"previous_names":["spectra-ai-codegen/default-project-name","coslynx/default-project-name"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coslynx/default-project-name","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coslynx%2Fdefault-project-name","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coslynx%2Fdefault-project-name/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coslynx%2Fdefault-project-name/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coslynx%2Fdefault-project-name/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coslynx","download_url":"https://codeload.github.com/coslynx/default-project-name/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coslynx%2Fdefault-project-name/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267150454,"owners_count":24043473,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-integration","api-requests","code-generation","code-quality","community-features","developer-tools","devops","discord-js","discord-music-bot","javascript","lavalink","machine-learning","mongodb","music-playback","node-js","playlist-management","software-development","user-interface","voice-channel-management","web-development"],"created_at":"2024-09-28T09:20:18.124Z","updated_at":"2026-02-05T09:40:18.981Z","avatar_url":"https://github.com/coslynx.png","language":"JavaScript","readme":"# 🌟 Discord Music Bot Project 🌟\n\n## 📋 Description\n\nA comprehensive Discord bot designed to elevate user experience within servers by providing interactive music playback functionalities. This bot empowers communities, gaming groups, and individuals to create a shared musical experience on Discord, fostering engagement and creating a more enjoyable atmosphere.\n\n- 🎯 **Music Playback:** Play music from various sources like YouTube, SoundCloud, and Spotify, providing controls for play, pause, skip, stop, and volume adjustments.\n- 🛠️ **Search Functionality:** Easily find and play specific songs or playlists with a user-friendly search command that suggests relevant results. \n- 🚀 **Voice Channel Management:** Seamlessly join and leave voice channels based on user commands, allowing users to control bot volume and adjust audio settings.\n\n## 📑 Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Hosting](#hosting)\n- [API Documentation](#api-documentation)\n- [License](#license)\n- [Authors and Acknowledgments](#authors-and-acknowledgments)\n\n## 💻 Installation\n\n### 🔧 Prerequisites\n\n- Node.js (v16 or later)\n- npm (or yarn)\n- Docker (optional)\n\n### 🚀 Setup Instructions\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/spectra-ai-codegen/discord-music-bot.git\n   ```\n2. **Navigate to the project directory:**\n   ```bash\n   cd discord-music-bot\n   ```\n3. **Install dependencies:**\n   ```bash\n   npm install\n   ```\n4. **Set up environment variables:**\n   - Create a `.env` file in the project root.\n   - Add your Discord bot token, Lavalink server URL, and other API keys as environment variables:\n     ```\n     DISCORD_TOKEN=your_discord_bot_token\n     LAVALINK_URL=your_lavalink_server_url\n     YOUTUBE_API_KEY=your_youtube_api_key\n     SOUNDCLOUD_CLIENT_ID=your_soundcloud_client_id\n     SPOTIFY_CLIENT_ID=your_spotify_client_id\n     SPOTIFY_CLIENT_SECRET=your_spotify_client_secret\n     GENIUS_ACCESS_TOKEN=your_genius_access_token\n     MUSIXMATCH_API_KEY=your_musixmatch_api_key\n     ```\n\n## 🏗️ Usage\n\n### 🏃‍♂️ Running the Project\n\n1. **Start the development server:**\n   ```bash\n   npm start\n   ```\n2. **Invite the bot to your Discord server:**\n   - Go to [https://discord.com/api/oauth2/authorize?client_id=YOUR_BOT_ID\u0026permissions=8\u0026scope=bot](https://discord.com/api/oauth2/authorize?client_id=YOUR_BOT_ID\u0026permissions=8\u0026scope=bot) (replace `YOUR_BOT_ID` with your bot's ID).\n   - Select your server and authorize the bot.\n\n### ⚙️ Configuration\n\nAdjust configuration settings in `config.js`. \n\n### 📚 Examples\n\n- **📝 Play a song:** `!play \u003csong name\u003e`\n- **📝 Search for a song:** `!search \u003csong name\u003e`\n- **📝 Add a song to the queue:** `!queue \u003csong name\u003e`\n- **📝 Skip the current song:** `!skip`\n- **📝 Pause the music:** `!pause`\n- **📝 Resume playback:** `!resume`\n- **📝 Stop the music:** `!stop`\n- **📝 Set the volume:** `!volume \u003cnumber\u003e`\n- **📝 Display the current song:** `!nowplaying`\n- **📝 Create a playlist:** `!createplaylist \u003cplaylist name\u003e`\n- **📝 Add a song to a playlist:** `!addplaylist \u003cplaylist name\u003e \u003csong name\u003e`\n- **📝 Remove a song from a playlist:** `!removeplaylist \u003cplaylist name\u003e \u003csong name\u003e`\n- **📝 List the songs in a playlist:** `!listplaylist \u003cplaylist name\u003e`\n- **📝 Play a playlist:** `!playplaylist \u003cplaylist name\u003e`\n\n\n## 🌐 Hosting\n\n### 🚀 Deployment Instructions\n\n#### Heroku\n\n1. **Install the Heroku CLI:**\n   ```bash\n   npm install -g heroku\n   ```\n2. **Login to Heroku:**\n   ```bash\n   heroku login\n   ```\n3. **Create a new Heroku app:**\n   ```bash\n   heroku create\n   ```\n4. **Deploy the code:**\n   ```bash\n   git push heroku main\n   ```\n5. **Set environment variables:**\n   - Go to your Heroku app's settings page.\n   - Add the environment variables listed in the [`.env`](#setup-instructions) section.\n\n### 🔑 Environment Variables\n\n- `DISCORD_TOKEN`: Your Discord bot token.\n- `LAVALINK_URL`:  Your Lavalink server URL.\n- `YOUTUBE_API_KEY`: Your YouTube Data API v3 key.\n- `SOUNDCLOUD_CLIENT_ID`: Your SoundCloud client ID.\n- `SPOTIFY_CLIENT_ID`: Your Spotify client ID.\n- `SPOTIFY_CLIENT_SECRET`: Your Spotify client secret.\n- `GENIUS_ACCESS_TOKEN`: Your Genius API access token.\n- `MUSIXMATCH_API_KEY`: Your Musixmatch API key.\n- `MONGODB_URI`:  Your MongoDB connection URI (optional, for storing playlists).\n\n## 📜 API Documentation\n\n(Optional: If you are adding a web interface, provide documentation for the APIs you expose.)\n\n### 🔍 Endpoints\n\n- **GET /api/playlists**: Retrieves a list of playlists (if using MongoDB).\n- **POST /api/playlists**: Creates a new playlist (if using MongoDB).\n\n### 🔒 Authentication\n\n(Optional:  If using authentication, describe your authentication mechanism.)\n\n### 📝 Examples\n\n(Optional: Provide example API requests.)\n\n## 📜 License\n\nThis project is licensed under the [GNU AGPLv3](https://choosealicense.com/licenses/agpl-3.0/).\n\n## 👥 Authors and Acknowledgments\n\n- **Author Name** - Spectra.codes\n- **Contributor Name** - DRIX10\n\nSpecial thanks to:\n- [Spectra.codes](https://spectra.codes)\n- [DRIX10](https://github.com/Drix10)\n\n## 📚 Additional Resources\n\n- [Project Website](https://example.com)\n- [Documentation](https://example.com/docs)\n- [Related Project](https://example.com/related)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoslynx%2Fdefault-project-name","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoslynx%2Fdefault-project-name","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoslynx%2Fdefault-project-name/lists"}