fix(voice): prevent 24/7 rejoin spam when bot is not in guild or voice times out

- Check guild membership before BootRecovery and Watchdog sweeps; keep settings intact if bot is not in server
- Wire up RejoinBackoff to apply exponential cooldown when voice joins time out
- Stop redundant retry loops and deduplicate join failure logs
This commit is contained in:
NoLogicAlan committed 2026-10-21 03:38:12 +03:00
1 parent 355f6b1129
commit f2bfff59b5
5 files changed
+61 -8

No files matched your search

+16 -1
View File
@@ -167,7 +167,22 @@ const Watchdog247 = {
}
for (const { guildId, channelId } of savedChannels) {
if (remix.intentionalLeaves?.has?.(channelId)) {
const cleanG = cleanId(guildId);
const cleanCh = cleanId(channelId);
const guild = remix.client?.guilds?.get?.(cleanG);
if (!guild) {
// Bot is not in this guild — keep 24/7 setting intact for future invite, but skip sweep
skipped++;
continue;
}
if (this.rejoinBackoff?.remainingMs?.(cleanCh) > 0) {
skipped++;
continue;
}
if (remix.intentionalLeaves?.has?.(cleanCh)) {
skipped++;
continue;
}