How shahinahmedrafi01-pro/discord-voice works
This is a single-file Discord bot for continuous Quran recitation in one configured voice channel. A staff member starts playback with /playquran; the bot connects, streams surahs in sequence, and loops. Runtime monitors handle reconnection and pausing when the channel is empty, while a small health server supports hosting. The README says there is no stop command, but the sampled bot.py excerpt documents and implements /stopplay; this graph reflects that sampled implementation. Internal details are limited to the excerpts provided.
Main entry points: bot.py Voice Connection
Components 12
Staff Commands
- Play Command
bot.py - Stop Command
bot.py
Recitation Playback
- Voice Connection
bot.py - Surah Playback Loop
bot.py
Runtime Operations
- Empty Channel Monitor
bot.py - Reconnect Watchdog
bot.py - Bot Startup
bot.py - Health Server
bot.py
Other components
- Staff Member
- Discord
- MP3 Quran Source
- Uptime Probe
Connections 13
- Staff Member → Play Command: invokes
README.md - Play Command → Voice Connection: connects
bot.py - Play Command → Surah Playback Loop: starts
bot.py - Staff Member → Stop Command: invokes
bot.py - Stop Command → Voice Connection: disconnects
bot.py - Surah Playback Loop → Voice Connection: uses
bot.py - Surah Playback Loop → MP3 Quran Source: streams MP3
README.md - Voice Connection → Discord: joins channel
bot.py - Bot Startup → Reconnect Watchdog: starts
bot.py - Bot Startup → Empty Channel Monitor: starts
bot.py - Reconnect Watchdog → Voice Connection: reconnects
bot.py - Bot Startup → Health Server: starts
bot.py - Uptime Probe → Health Server: checks
README.md