Count listeners from the room so the bot leaves empty channels
The bot stayed in a channel everyone had left. revoice.js stores voice users by participant identity but removes them by participant name — and Stoat sets those to different things (the user id and username#tag) — so its list never shrinks and the channel never looked empty to us. Participants are now counted from the LiveKit room directly, and the check also runs on a 30s interval, so a participant event that never arrives cannot strand the bot either. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
49b87dc172
commit
1eec893d15
+583
-564
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user