{"id":25575508,"url":"https://github.com/louire/discord_plays","last_synced_at":"2026-02-16T04:35:39.539Z","repository":{"id":278115635,"uuid":"934533390","full_name":"louire/discord_plays","owner":"louire","description":"Discord Bot written in Rust","archived":false,"fork":false,"pushed_at":"2025-02-18T03:57:17.000Z","size":686,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-26T01:53:07.649Z","etag":null,"topics":["bot","discord","discord-bot","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/louire.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.MD","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,"zenodo":null}},"created_at":"2025-02-18T01:54:02.000Z","updated_at":"2025-02-21T01:34:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"d34344b1-4232-4c93-ab4c-4c4b749e698f","html_url":"https://github.com/louire/discord_plays","commit_stats":null,"previous_names":["louire/discord_plays"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/louire/discord_plays","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louire%2Fdiscord_plays","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louire%2Fdiscord_plays/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louire%2Fdiscord_plays/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louire%2Fdiscord_plays/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/louire","download_url":"https://codeload.github.com/louire/discord_plays/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louire%2Fdiscord_plays/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268215611,"owners_count":24214365,"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-08-01T02:00:08.611Z","response_time":67,"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":["bot","discord","discord-bot","rust"],"created_at":"2025-02-21T02:37:36.296Z","updated_at":"2026-02-16T04:35:34.505Z","avatar_url":"https://github.com/louire.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord Music Bot in Rust 🎵\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"assets/rustyBot.png\" alt=\"Rusty Bot Logo\" width=\"200\"\u003e\n\u003c/div\u003e\n\nA simple yet functional Discord bot written in Rust that can play music from YouTube in voice channels. Built using the Serenity and Songbird libraries.\n\n## Features ✨\n\n- Join voice channels (`!join`)\n- Play music from YouTube URLs (`!play`)\n- Leave voice channel (`!leave`)\n- Automatic volume control\n- Status messages with emojis\n- Robust error handling\n\n## Prerequisites 📋\n\nBefore running the bot, make sure you have the following installed:\n\n- [Rust](https://www.rust-lang.org/tools/install)\n- [yt-dlp](https://github.com/yt-dlp/yt-dlp#installation)\n- [FFmpeg](https://ffmpeg.org/download.html)\n\n### macOS\n```bash\n# Using Homebrew\nbrew install rust\nbrew install yt-dlp\nbrew install ffmpeg\n```\n\n### Linux (Ubuntu/Debian)\n```bash\n# Install Rust\ncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh\n\n# Install yt-dlp and ffmpeg\nsudo apt update\nsudo apt install yt-dlp ffmpeg\n```\n\n## Setup 🔧\n\n1. Create a new application in the [Discord Developer Portal](https://discord.com/developers/applications)\n2. Create a bot for your application and copy the token\n3. Replace `\"PLACE_YOUR_TOKEN_HERE\"` in `src/main.rs` with your token\n4. Invite the bot to your server using the OAuth2 URL generated in the portal\n\n## Installation 🚀\n\n```bash\n# Clone the repository\ngit clone git@github.com:louire/discord_plays.git\ncd discord_plays\n\n# Build and run\ncargo run\n```\n\n## Usage 📖\n\nOnce the bot is online, you can use the following commands:\n\n- `!join` - Bot joins your current voice channel\n- `!play \u003curl\u003e` - Plays audio from a YouTube video\n- `!leave` - Bot leaves the voice channel\n\nExample:\n```\n!play https://www.youtube.com/watch?v=dQw4w9WgXcQ\n```\n\n## Troubleshooting 🔍\n\nIf you encounter issues:\n\n1. Verify all dependencies are installed:\n```bash\nyt-dlp --version\nffmpeg -version\n```\n\n2. Ensure the bot has the necessary Discord permissions:\n   - Connect (to voice channels)\n   - Speak\n   - Send Messages\n\n3. Check that the YouTube URL is valid and accessible\n\n4. Review console logs for error messages\n\n## TODO List 📝\n\nFeatures and improvements we plan to add:\n\n### High Priority\n- [ ] Search functionality: Allow users to search songs by name instead of requiring the exact URL\n- [ ] Track selection: Show top 5 results when searching and let users choose\n- [ ] Queue system: Add ability to queue multiple songs\n- [ ] Skip command: Add ability to skip current track\n- [ ] Volume control: Add command to adjust volume during playback\n\n### Medium Priority\n- [ ] Playlist support: Allow playing entire YouTube playlists\n- [ ] Save favorites: Let users save their favorite songs\n- [ ] Song info display: Show current song title, duration, and progress\n- [ ] Error recovery: Auto-reconnect on disconnection\n- [ ] Permissions system: Add DJ role and admin commands\n\n\n## Contributing 🤝\n\nContributions are welcome! Here's how you can help:\n\n1. Pick an item from the TODO list\n2. Open an issue to discuss your implementation\n3. Fork the repository\n4. Create a new branch for your feature\n5. Submit a pull request\n\nPlease ensure your code:\n- Follows the existing code style\n- Includes appropriate comments\n- Has been tested thoroughly\n- Updates the README if adding new commands\n\n## License 📄\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.\n\n## Acknowledgments 👏\n\n- [Serenity](https://github.com/serenity-rs/serenity) - Discord framework for Rust\n- [Songbird](https://github.com/serenity-rs/songbird) - Voice library for Serenity\n- [yt-dlp](https://github.com/yt-dlp/yt-dlp) - YouTube downloader","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouire%2Fdiscord_plays","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flouire%2Fdiscord_plays","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouire%2Fdiscord_plays/lists"}