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

+20 -9
View File
@@ -71,20 +71,27 @@ export async function run(msg, data) {
if (userChannelId) targetChannelId = cleanId(userChannelId);
}
const leaveNotice = (desc) => new EmbedBuilder()
.setColor(0xe9196c)
.setAuthor({ name: `👋 ${this.t(msg, "responses.leave.sessionEndedTitle")}` })
.setDescription(desc);
if (!targetChannelId) {
if (guildPlayers.length === 0) {
return msg.reply(this.t(msg, "responses.leave.notInVoice"));
return msg.reply({ embeds: [leaveNotice(this.t(msg, "responses.leave.notInVoice"))] });
}
const channelList = guildPlayers.map(([mapKey, p]) => {
const id = cleanId(p._channelId ?? mapKey);
return id ? `<#${id}>` : "\`unknown\`";
});
return msg.reply(
return msg.reply({
embeds: [leaveNotice(
this.t(msg, "responses.leave.specifyChannel", {
channels: channelList.map(c => `• ${c}`).join("\n"),
prefix: this.handler.getPrefix(msg.message?.guildId ?? msg.channel?.guild?.id)
})
);
)]
});
}
const player = this.players.playerMap.get(targetChannelId)
@@ -95,29 +102,33 @@ export async function run(msg, data) {
if (!player) {
if (guildPlayers.length === 0) {
return msg.reply(this.t(msg, "responses.leave.notInVoice"));
return msg.reply({ embeds: [leaveNotice(this.t(msg, "responses.leave.notInVoice"))] });
}
const channelList = guildPlayers.map(([mapKey, p]) => {
const id = cleanId(p._channelId ?? mapKey);
return id ? `<#${id}>` : "\`unknown\`";
});
if (!client?.channels?.get?.(targetChannelId)) {
return msg.reply(
return msg.reply({
embeds: [leaveNotice(
this.t(msg, "responses.leave.specifyChannel", {
channels: channelList.map(c => `• ${c}`).join("\n"),
prefix: this.handler.getPrefix(msg.message?.guildId ?? msg.channel?.guild?.id)
})
);
)]
});
}
return msg.reply(
return msg.reply({
embeds: [leaveNotice(
this.t(msg, "responses.leave.noPlayerInChannel", {
channel: targetChannelId,
channels: channelList.map(c => `• ${c}`).join("\n")
})
);
)]
});
}
if (!player?.connection) return msg.reply(this.t(msg, "responses.leave.playerNotInit"));
if (!player?.connection) return msg.reply({ embeds: [leaveNotice(this.t(msg, "responses.leave.playerNotInit"))] });
const activeChannelId = cleanId(player._channelId) || targetChannelId;
const homeChannelId = cleanId(player._home247Channel) || activeChannelId;