mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
feat: modernize UI, overhaul ErrorChannel telemetry, and achieve 100% 6-locale parity
- Core & Telemetry: * Overhaul ErrorChannel (config.errorLogChannel) to rich Pro Embeds with severity color coding (Error, Warn, Info). * Add structured crash reports featuring syntax-highlighted stack traces, uptime, and RSS memory telemetry. * Add log flood drop notifications and startup connection status announcement. * Support dynamic self-hosted Fluxer API base resolution (config.apiBase / config['fluxer.js'].api). * Wire ErrorChannel into the localization system with dynamic _t() translation and safe fallback. - Localization & i18n: * Expand all 6 locale files (en, ar-SA, ckb, tr, de-DE, pt-BR) to 1,112 keys each. * Achieve 100% key parity and 0 variable mismatches across all supported languages. * Localize all embed titles, author badges, footers, and system responses. - Commands & Modern UI: * Upgrade all commands (playback, queue, audio DSP, utility, lastfm, settings, owner) to the modern Pro UI embed design. * Add previous, replay, and skipto queue navigation commands with history tracking. * Replace raw unicode escapes with literal UTF-8 emojis. * Maintain clean codebase standards (zero single-line comments introduced, commands/stats.mjs strictly untouched). - Architecture & Voice: * Enhance FluxerAudioBridge, VoiceStateRouting, and VoiceStateCache for reliable voice reconnects. * Refactor centralized database pooling and player lifecycle mixins.
This commit is contained in:
1 parent
c0c95610ac
commit
3b9620012f
34 files changed
+685
-171
No files matched your search
@@ -147,7 +147,7 @@ async function processRejoinBatch(ctx, entries, statusMsg, title) {
|
||||
const icon = r.success ? "✅" : "❌";
|
||||
progressLines.push(`${icon} \`${r.label}\`${r.success ? ` — room:${r.roomState}` : ` — failed (${r.reason ?? "?"})`}`);
|
||||
}
|
||||
await statusMsg.edit({ embeds: [new EmbedBuilder().setColor(WARN_COLOR).setTitle(`Debug — ${title}`).setDescription(progressLines.join("\n").slice(0, MAX_DESC))] }).catch(() => {});
|
||||
await statusMsg.edit({ embeds: [new EmbedBuilder().setColor(WARN_COLOR).setAuthor({ name: this.t ? this.t(msg, "responses.debug.rejoinAuthor") : (ctx.t ? ctx.t(msg, "responses.debug.rejoinAuthor") : "🛠️ Voice Rejoin Controller") }).setTitle(`Debug — ${title}`).setDescription(progressLines.join("\n").slice(0, MAX_DESC)).setFooter({ text: this.t ? this.t(msg, "responses.debug.rejoinFooter") : (ctx.t ? ctx.t(msg, "responses.debug.rejoinFooter") : "Owner Diagnostics • Batch Rejoin") })] }).catch(() => {});
|
||||
|
||||
const result = await forceRejoinPlayer(ctx, player);
|
||||
result.label = label;
|
||||
@@ -197,7 +197,7 @@ function buildRejoinResultEmbed(results, title, noun) {
|
||||
}
|
||||
|
||||
const finalColor = failedCount === 0 ? SUCCESS_COLOR : DANGER_COLOR;
|
||||
return { embeds: [new EmbedBuilder().setColor(finalColor).setTitle(`Debug — ${title}`).setDescription(resultLines.join("\n").slice(0, MAX_DESC))] };
|
||||
return { embeds: [new EmbedBuilder().setColor(finalColor).setAuthor({ name: this.t ? this.t(msg, "responses.debug.rejoinAuthor") : (ctx.t ? ctx.t(msg, "responses.debug.rejoinAuthor") : "🛠️ Voice Rejoin Controller") }).setTitle(`Debug — ${title}`).setDescription(resultLines.join("\n").slice(0, MAX_DESC)).setFooter({ text: this.t ? this.t(msg, "responses.debug.rejoinFooter") : (ctx.t ? ctx.t(msg, "responses.debug.rejoinFooter") : "Owner Diagnostics • Batch Rejoin") })] };
|
||||
}
|
||||
/**
|
||||
* Run a batch rejoin operation on matching players.
|
||||
@@ -222,8 +222,10 @@ export async function runBatchRejoin(msg, key, title, noun, filter, showHintIfEm
|
||||
: "";
|
||||
const embed = new EmbedBuilder()
|
||||
.setColor(SUCCESS_COLOR)
|
||||
.setAuthor({ name: this.t ? this.t(msg, "responses.debug.rejoinAuthor") : (ctx.t ? ctx.t(msg, "responses.debug.rejoinAuthor") : "🛠️ Voice Rejoin Controller") })
|
||||
.setTitle(`Debug — ${title}`)
|
||||
.setDescription(`No ${noun} found. All voice connections appear healthy.${hintLine}`)
|
||||
.setFooter({ text: this.t ? this.t(msg, "responses.debug.rejoinFooter") : (ctx.t ? ctx.t(msg, "responses.debug.rejoinFooter") : "Owner Diagnostics • Batch Rejoin") })
|
||||
;
|
||||
return msg.reply({ embeds: [embed] });
|
||||
}
|
||||
@@ -245,8 +247,10 @@ export async function runBatchRejoin(msg, key, title, noun, filter, showHintIfEm
|
||||
|
||||
const statusEmbed = new EmbedBuilder()
|
||||
.setColor(WARN_COLOR)
|
||||
.setAuthor({ name: this.t ? this.t(msg, "responses.debug.rejoinAuthor") : (ctx.t ? ctx.t(msg, "responses.debug.rejoinAuthor") : "🛠️ Voice Rejoin Controller") })
|
||||
.setTitle(`Debug — ${title}`)
|
||||
.setDescription(statusLines.join("\n").slice(0, MAX_DESC))
|
||||
.setFooter({ text: this.t ? this.t(msg, "responses.debug.rejoinFooter") : (ctx.t ? ctx.t(msg, "responses.debug.rejoinFooter") : "Owner Diagnostics • Batch Rejoin") })
|
||||
;
|
||||
const statusMsg = await msg.reply({ embeds: [statusEmbed] });
|
||||
|
||||
|
||||
@@ -153,8 +153,10 @@ export async function runVoiceDiagnostic(msg) {
|
||||
const embedColor = ghostConnections.length > 0 ? DANGER_COLOR : getGlobalColor();
|
||||
const embed = new EmbedBuilder()
|
||||
.setColor(embedColor)
|
||||
.setAuthor({ name: this.t(msg, "responses.debug.voiceAuthor") })
|
||||
.setTitle(this.t(msg, "responses.debug.voiceTitle") + (ghostConnections.length > 0 ? ` — ${ghostConnections.length} Ghost(s) Detected!` : ""))
|
||||
.setDescription(pages[0].slice(0, MAX_DESC))
|
||||
.setFooter({ text: this.t(msg, "responses.debug.telemetryFooter") })
|
||||
;
|
||||
return msg.reply({ embeds: [embed] });
|
||||
}
|
||||
@@ -176,6 +178,7 @@ export async function runVoiceDiagnostic(msg) {
|
||||
|
||||
const embed = new EmbedBuilder()
|
||||
.setColor(embedColor)
|
||||
.setAuthor({ name: this.t(msg, "responses.debug.voiceAuthor") })
|
||||
.setTitle(this.t(msg, "responses.debug.voiceTitle") + titleSuffix + ` — ${pageLabel}`)
|
||||
.setDescription(pages[pageIdx].slice(0, MAX_DESC))
|
||||
.setFooter({ text: footerText })
|
||||
|
||||
Reference in new issue
Block a user