fix: correct unknown command name reporting and silence background voice pings (#10)

This commit is contained in:
NoLogicAlan committed 2026-10-21 04:14:10 +03:00
1 parent f2bfff59b5
commit cf278ed68c
4 files changed
+13 -6

No files matched your search

+10 -3
View File
@@ -56,9 +56,16 @@ const RejoinManager = {
continue;
}
logger.warn(
`[${context}] Failed to rejoin channel ${channelId}: ${errMsg} — keeping 24/7 setting intact.`
);
const failCount = this.rejoinBackoff?.failures?.(channelId) ?? 0;
if (failCount >= 2) {
logger.voice247(
`[${context}] Background rejoin failed for channel ${channelId} (failure #${failCount + 1}): ${errMsg} — keeping 24/7 setting intact.`
);
} else {
logger.warn(
`[${context}] Failed to rejoin channel ${channelId}: ${errMsg} — keeping 24/7 setting intact.`
);
}
return null;
}
}