{"id":31730308,"url":"https://github.com/ibfleming/zion-discord-bot","last_synced_at":"2025-10-09T07:27:00.802Z","repository":{"id":275524036,"uuid":"906367228","full_name":"ibfleming/zion-discord-bot","owner":"ibfleming","description":"A sleek and reliable Discord music bot named 'Magi of Zion' that streams high-quality music in your Discord channels. ","archived":false,"fork":false,"pushed_at":"2025-09-18T04:36:02.000Z","size":40340,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-18T06:08:59.224Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ibfleming.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-20T18:35:35.000Z","updated_at":"2025-09-18T04:36:05.000Z","dependencies_parsed_at":"2025-02-03T05:19:11.895Z","dependency_job_id":"e873ddac-1ce9-4ccb-8bab-624e0400138e","html_url":"https://github.com/ibfleming/zion-discord-bot","commit_stats":null,"previous_names":["ibfleming/discord-bot-zion","ibfleming/zion-discord-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ibfleming/zion-discord-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibfleming%2Fzion-discord-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibfleming%2Fzion-discord-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibfleming%2Fzion-discord-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibfleming%2Fzion-discord-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibfleming","download_url":"https://codeload.github.com/ibfleming/zion-discord-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibfleming%2Fzion-discord-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000984,"owners_count":26082973,"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-10-09T02:00:07.460Z","response_time":59,"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":[],"created_at":"2025-10-09T07:26:58.207Z","updated_at":"2025-10-09T07:27:00.789Z","avatar_url":"https://github.com/ibfleming.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ZION Discord Music Bot\n\nA powerful Discord music bot built with Python 3.13 that streams high-quality audio directly from YouTube without downloading files. Features per-guild queue management, seamless playback, and graceful shutdown handling.\n\n## Features\n\n- **YouTube Streaming**: Direct audio streaming from YouTube using yt-dlp\n- **Per-Guild Queues**: Independent music queues for each Discord server\n- **High Performance**: Built with discord.py 2.6 and asyncio for optimal performance\n- **Complete Playback Controls**: Play, pause, resume, skip, stop, and volume control\n- **Smart Queue Management**: Add, view, and clear queues with ease\n- **High-Quality Audio**: FFmpeg integration with reconnection and buffering\n- **Robust Error Handling**: Comprehensive logging and graceful error recovery\n- **Docker Ready**: Containerized deployment with multi-stage builds\n\n## Commands\n\nAll commands use the `.` prefix:\n\n### Music Playback\n\n| Command | Description | Example |\n|---------|-------------|---------|\n| `.play \u003curl or search\u003e` | Play a song or add it to the queue | `.play never gonna give you up` |\n| `.pause` | Pause the current song | `.pause` |\n| `.resume` | Resume the paused song | `.resume` |\n| `.skip` | Skip to the next song in the queue | `.skip` |\n| `.stop` | Stop playback and disconnect from voice | `.stop` |\n| `.volume \u003c0-100\u003e` | Set playback volume (0-100%) | `.volume 75` |\n\n### Queue Management\n\n| Command | Description | Example |\n|---------|-------------|---------|\n| `.queue list` | Show the current queue | `.queue list` |\n| `.queue add \u003csong\u003e` | Add a song to the queue | `.queue add bohemian rhapsody` |\n| `.queue clear` | Clear the entire queue | `.queue clear` |\n\n### General\n\n| Command | Description |\n|---------|-------------|\n| `.help` | Show available commands |\n\n## Quick Start\n\n### Prerequisites\n\n- Python 3.13+\n- FFmpeg installed and available in PATH\n- Discord Bot Token\n\n### Installation\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/ibfleming/zion-discord-bot.git\n   cd zion-discord-bot\n   ```\n\n2. **Set up environment:**\n   ```bash\n   python -m venv venv\n   source venv/bin/activate  # On Windows: venv\\Scripts\\activate\n   pip install -r requirements.txt\n   ```\n\n3. **Configure environment variables:**\n   ```bash\n   # Create .env file\n   echo \"DISCORD_TOKEN=your_discord_bot_token_here\" \u003e .env\n   ```\n\n4. **Run the bot:**\n   ```bash\n   python src/bot.py\n   ```\n\n## Docker Deployment\n\n### Using Docker Compose (Recommended)\n\n1. **Create environment file:**\n   ```bash\n   echo \"DISCORD_TOKEN=your_discord_bot_token_here\" \u003e .env\n   ```\n\n2. **Deploy with compose:**\n   ```bash\n   docker-compose up -d\n   ```\n\n### Manual Docker Build\n\n1. **Build and run:**\n   ```bash\n   ./build.sh 1.0.1\n   docker run -d --name zion-bot -e DISCORD_TOKEN=your_token ibfleming/zion-discord-bot:latest\n   ```\n\n## Development\n\n### Project Structure\n\n```plaintext\nsrc/\n├── bot.py          # Main entry point and bot setup\n├── config.py       # Configuration and environment variables  \n├── logger.py       # Logging configuration\n├── cogs/\n│   ├── music.py    # Music commands and queue management\n│   └── help.py     # Help command\n├── core/\n│   ├── ytdl.py     # YouTube streaming engine\n│   └── shutdown.py # Graceful shutdown handling\n└── utils/\n    └── terminal.py # Terminal configuration\n```\n\n### Running Tests\n\n```bash\npytest tests/\n```\n\n### Key Technologies\n\n- **discord.py 2.6**: Discord API wrapper with voice support\n- **yt-dlp**: YouTube audio extraction and streaming\n- **FFmpeg**: Audio processing and streaming\n- **loguru**: Advanced logging with colors and formatting\n- **asyncio**: Asynchronous programming for high performance\n\n## Configuration\n\nThe bot uses environment variables for configuration:\n\n- `DISCORD_TOKEN`: Your Discord bot token (required)\n\nFFmpeg and yt-dlp options are pre-configured for optimal streaming performance.\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch: `git checkout -b feature-name`\n3. Make your changes and test thoroughly\n4. Submit a pull request with a clear description\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibfleming%2Fzion-discord-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibfleming%2Fzion-discord-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibfleming%2Fzion-discord-bot/lists"}