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:
NoLogicAlan committed 2026-10-28 02:19:26 +03:00
1 parent c0c95610ac
commit 3b9620012f
34 files changed
+685 -171

No files matched your search

+7 -3
View File
@@ -151,6 +151,7 @@ const PlayerLifecycleMixin = {
if (!cleanGuildId) {
const serverOnlyEmbed = new EmbedBuilder()
.setColor(getGlobalColor())
.setAuthor({ name: this._t(msg, "responses.join.selectVCAuthor") || "🔊 Voice Channel Setup" })
.setDescription(this._t(msg, "responses._common.serverOnlyForMusic"));
await msg.reply({ embeds: [serverOnlyEmbed] }).catch(() => {});
return false;
@@ -197,6 +198,7 @@ const PlayerLifecycleMixin = {
cleanup();
const timeoutEmbed = new EmbedBuilder()
.setColor(getGlobalColor())
.setAuthor({ name: this._t(msg, "responses.join.selectVCAuthor") || "🔊 Voice Channel Setup" })
.setDescription(this._t(msg, "responses._common.voiceSelectionTimedOut"));
msg.reply({ embeds: [timeoutEmbed] }).catch(() => {});
resolve(false);
@@ -371,12 +373,14 @@ const PlayerLifecycleMixin = {
} catch(e) {
logger.warn("[PlayerManager] Failed to save announcement channel ID:", e?.message);
}
message.reply({ embeds: [new EmbedBuilder().setColor(getGlobalColor()).setDescription(this._t(message, "responses.join.alreadyJoined", { channel: cid }))] });
const alreadyJoinedEmbed = new EmbedBuilder().setColor(getGlobalColor()).setAuthor({ name: this._t(message, "responses.join.connectedAuthor") }).setDescription(this._t(message, "responses.join.alreadyJoined", { channel: cid }));
message.reply({ embeds: [alreadyJoinedEmbed] });
return existing;
}
}
if (this._pendingJoins.has(cleanChannelId)) {
message.reply(this._t(message, "responses.join.joining"));
const pendingEmbed = new EmbedBuilder().setColor(getGlobalColor()).setAuthor({ name: this._t(message, "responses.join.connectedAuthor") }).setDescription(this._t(message, "responses.join.joining"));
message.reply({ embeds: [pendingEmbed] });
return null;
}
this._pendingJoins.add(cleanChannelId);
@@ -575,7 +579,7 @@ const PlayerLifecycleMixin = {
});
});
const joiningEmbed = new EmbedBuilder().setColor(getGlobalColor()).setDescription(this._t(message, "responses.join.joining"));
const joiningEmbed = new EmbedBuilder().setColor(getGlobalColor()).setAuthor({ name: this._t(message, "responses.join.connectedAuthor") }).setDescription(this._t(message, "responses.join.joining"));
const statusMsg = await message.reply({ embeds: [joiningEmbed] }).catch(() => null);
try {
await player.join(cid);