53f26185bcfe0b863953dae8f632ecce1bc7f8e2
Root cause: ScreenShareController created @dank074 Streamer but never called streamer.joinVoiceChannel() — playStream threw 'Bot is not connected to a voice channel', and since the code only used .finally() (no .catch), the rejection became an unhandledRejection that took down the whole gateway (graceful shutdown triggered, systemd restarted). Fixes: 1. Resolve active channel + streamer.joinVoiceChannel(channel) before prepareStream/playStream (dank074 needs its OWN WebRTC voice connection). 2. .catch() on the playStream done promise — log + kill ffmpeg instead of crashing the process. 3. .catch() on playback.done in media.handler too. 4. stop() now kills ffmpeg AND stops the streamer's voice connection.
Description
Bete Discord moderation watcher
26 MiB
Languages
TypeScript
97.2%
Nix
0.9%
Shell
0.8%
CSS
0.7%
PLpgSQL
0.4%