mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
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:
1 parent
355f6b1129
commit
f2bfff59b5
5 files changed
+61
-8
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user