diff --git a/commands/debug.mjs b/commands/debug.mjs index 3897410..74b434b 100644 --- a/commands/debug.mjs +++ b/commands/debug.mjs @@ -55,9 +55,10 @@ export async function run(msg, data) { default: { const embed = new EmbedBuilder() .setColor(ERROR_COLOR) - .setTitle("Debug — Unknown Target") + .setAuthor({ name: this.t(msg, "responses.debug.author") }) + .setTitle(this.t(msg, "responses.debug.unknownTitle")) .setDescription(`Unknown debug target: \`${target}\`.\nValid options: \`voice\`, \`voice-rejoin\`, \`247-rejoin\`.`) - ; + .setFooter({ text: this.t(msg, "responses.debug.footerHelp") }); return msg.reply({ embeds: [embed] }); } } diff --git a/commands/debug/rejoin.mjs b/commands/debug/rejoin.mjs index d75d4d8..adda9ba 100644 --- a/commands/debug/rejoin.mjs +++ b/commands/debug/rejoin.mjs @@ -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] }); diff --git a/commands/debug/voiceDiagnostic.mjs b/commands/debug/voiceDiagnostic.mjs index 469f74b..8492db8 100644 --- a/commands/debug/voiceDiagnostic.mjs +++ b/commands/debug/voiceDiagnostic.mjs @@ -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 }) diff --git a/commands/eval.mjs b/commands/eval.mjs index 04cf215..769a665 100644 --- a/commands/eval.mjs +++ b/commands/eval.mjs @@ -248,6 +248,7 @@ export async function run(msg, data) { const embed = new EmbedBuilder() .setColor(isError ? ERROR_COLOR : getGlobalColor()) + .setAuthor({ name: this.t(msg, "responses.eval.author") }) .setTitle(title) .setDescription(desc) .setFooter({ text: footerText }) diff --git a/commands/invite.mjs b/commands/invite.mjs index ecadf57..e5f6a6b 100644 --- a/commands/invite.mjs +++ b/commands/invite.mjs @@ -34,15 +34,9 @@ export async function run(message) { name: this.t(message, "responses.invite.title"), iconURL: botIcon }) - .setTitle("Add Remix to Your Server") - .setDescription( - "High-fidelity 24/7 Music Bot supporting YouTube, Spotify, SoundCloud, Apple Music & Deezer.\n\n" + - "💎 **48kHz Hi-Fi Audio** • 🎛️ **30+ Filters** • ⚡ **Dynamic Normalizer** • 📻 **Live Web Radio**\n\n" + - "**Quick Links:**\n" + - "• [➕ **Add Remix to Server**](https://fluxerlist.com/bots/remix)\n" + - "• [💬 **Join Support Community**](https://fluxer.gg/remix)" - ) - .setFooter({ text: "Remix • Free & Open-Source Music" }); + .setTitle(this.t(message, "responses.invite.addRemixTitle")) + .setDescription(this.t(message, "responses.invite.description")) + .setFooter({ text: this.t(message, "responses.invite.footer") }); if (botIcon) embed.setThumbnail(botIcon); diff --git a/commands/leave.mjs b/commands/leave.mjs index 7ff3250..6c6b091 100644 --- a/commands/leave.mjs +++ b/commands/leave.mjs @@ -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; diff --git a/commands/logtest.mjs b/commands/logtest.mjs index 3a82e99..b58efd6 100644 --- a/commands/logtest.mjs +++ b/commands/logtest.mjs @@ -28,10 +28,15 @@ export const command = new CommandBuilder() */ export async function run(msg) { if (!isLogChannelEnabled()) { - const embed = new EmbedBuilder().setColor(getGlobalColor()).setDescription( - "❌ The error-log channel is **disabled**.\n" + - "Set `errorLogChannel.enabled` to `true` and `errorLogChannel.channelId` to your log channel ID in config.json, then restart the bot." - ); + const embed = new EmbedBuilder() + .setColor(getGlobalColor()) + .setAuthor({ name: this.t(msg, "responses.logtest.author") }) + .setTitle(this.t(msg, "responses.logtest.disabledTitle")) + .setDescription( + "❌ The error-log channel is **disabled**.\n" + + "Set `errorLogChannel.enabled` to `true` and `errorLogChannel.channelId` to your log channel ID in config.json, then restart the bot." + ) + .setFooter({ text: this.t(msg, "responses.logtest.footerConfig") }); return msg.reply({ embeds: [embed] }); } @@ -41,8 +46,13 @@ export async function run(msg) { `Manual test entry requested by ${who} — if you can read this in the log channel, error forwarding is working.` ); - const embed = new EmbedBuilder().setColor(getGlobalColor()).setDescription( - "📨 Test entry queued — check the log channel; it should arrive within a few seconds." - ); + const embed = new EmbedBuilder() + .setColor(getGlobalColor()) + .setAuthor({ name: this.t(msg, "responses.logtest.author") }) + .setTitle(this.t(msg, "responses.logtest.queuedTitle")) + .setDescription( + "📨 Test entry queued — check the log channel; it should arrive within a few seconds." + ) + .setFooter({ text: this.t(msg, "responses.logtest.footerPipeline") }); return msg.reply({ embeds: [embed] }).catch(() => {}); } diff --git a/commands/lyrics.mjs b/commands/lyrics.mjs index 1900619..25196be 100644 --- a/commands/lyrics.mjs +++ b/commands/lyrics.mjs @@ -6,7 +6,6 @@ import { CommandBuilder } from "../src/commands/index.mjs"; import { logger } from "../src/core/Logger.mjs"; import { EmbedBuilder } from "@fluxerjs/core"; -import { getGlobalColor } from "../src/ui/index.mjs"; import { Utils } from "../src/utils/Utils.mjs"; import { EMOJI_REMOVE_TIMEOUT } from "../src/utils/UI.mjs"; @@ -243,7 +242,7 @@ export async function run(message, data) { const singleEmbed = new EmbedBuilder() .setColor(0xe9196c) - .setAuthor({ name: "🎤 Lyrics" }) + .setAuthor({ name: this.t(message, "responses.lyrics.lyricsAuthor") }) .setTitle(Utils.truncate(displayTitle, 50)) .setDescription(singleDesc.slice(0, MAX_DESC)) .setFooter({ text: this.t(message, "responses.lyrics.sourceFooter", { source: result.source, lines: totalLines }) }); @@ -268,7 +267,7 @@ export async function run(message, data) { const b = new EmbedBuilder() .setColor(0xe9196c) - .setAuthor({ name: "🎤 Lyrics" }) + .setAuthor({ name: this.t(message, "responses.lyrics.lyricsAuthor") }) .setTitle(Utils.truncate(displayTitle, 50)) .setDescription(desc.slice(0, MAX_DESC)) .setFooter({ text: expired diff --git a/commands/np.mjs b/commands/np.mjs index 3c9e1e1..fa014f0 100644 --- a/commands/np.mjs +++ b/commands/np.mjs @@ -27,23 +27,24 @@ export async function run(msg) { const loadingEmbed = new EmbedBuilder() .setColor(getGlobalColor()) - .setDescription(this.t(msg, "responses.np.loading")) - ; + .setAuthor({ name: this.t(msg, "responses.np.nowPlayingAuthor") }) + .setDescription(this.t(msg, "responses.np.loading")); const loadingMsg = await msg.reply({ embeds: [loadingEmbed] }); try { const data = await p.nowPlaying(); if (!data?.msg && !data?.embed) { - loadingMsg.edit({ embeds: [new EmbedBuilder().setColor(getGlobalColor()).setDescription(this.t(msg, "responses._common.nothingPlaying"))] }).catch(() => {}); + loadingMsg.edit({ embeds: [new EmbedBuilder().setColor(getGlobalColor()).setAuthor({ name: this.t(msg, "responses.np.nowPlayingAuthor") }).setDescription(this.t(msg, "responses._common.nothingPlaying"))] }).catch(() => {}); return; } const embed = data.embed || new EmbedBuilder() .setColor(getGlobalColor()) + .setAuthor({ name: this.t(msg, "responses.np.nowPlayingAuthor") }) .setDescription(data.msg); if (!data.embed && data.image) embed.setThumbnail(data.image); loadingMsg.edit({ embeds: [embed] }).catch(() => {}); } catch (e) { - loadingMsg.edit({ embeds: [new EmbedBuilder().setColor(getGlobalColor()).setDescription(this.t(msg, "responses._common.nothingPlaying"))] }).catch(() => {}); + loadingMsg.edit({ embeds: [new EmbedBuilder().setColor(getGlobalColor()).setAuthor({ name: this.t(msg, "responses.np.nowPlayingAuthor") }).setDescription(this.t(msg, "responses._common.nothingPlaying"))] }).catch(() => {}); } } diff --git a/commands/pause.mjs b/commands/pause.mjs index 030f72c..4b7dcb1 100644 --- a/commands/pause.mjs +++ b/commands/pause.mjs @@ -26,7 +26,10 @@ export async function run(message) { const current = p.queue.getCurrent(); if (!p.connection || !current) { - const embed = new EmbedBuilder().setColor(0xe9196c).setDescription(this.t(message, "responses._common.nothingPlaying")); + const embed = new EmbedBuilder() + .setColor(0xe9196c) + .setAuthor({ name: `⏸️ ${this.t(message, "responses.pause.pausedTitle")}` }) + .setDescription(this.t(message, "responses._common.nothingPlaying")); return message.reply({ embeds: [embed] }); } diff --git a/commands/pitch.mjs b/commands/pitch.mjs index 549b588..817737e 100644 --- a/commands/pitch.mjs +++ b/commands/pitch.mjs @@ -46,12 +46,12 @@ export async function run(message, data) { delete existingPayload.timescale; await p.applyFilter(existingPayload, Object.keys(existingPayload).length > 0 ? p.activeFilter : null); embed.setAuthor({ name: `🎵 ${this.t(message, "responses.pitch.pitchTitle")}` }) - .setTitle("1.0× Normal") + .setTitle(this.t(message, "responses.pitch.normalRate")) .setDescription(this.t(message, "responses.pitch.reset")) .setFooter({ text: this.t(message, "responses.pitch.resetHint", { prefix }) }); } else { embed.setAuthor({ name: `🎵 ${this.t(message, "responses.pitch.pitchTitle")}` }) - .setTitle("1.0× Normal") + .setTitle(this.t(message, "responses.pitch.normalRate")) .setDescription(this.t(message, "responses.pitch.current", { pitch: "1.0", prefix })) .setFooter({ text: this.t(message, "responses.pitch.resetHint", { prefix }) }); } diff --git a/commands/play.mjs b/commands/play.mjs index b7d591e..85013d8 100644 --- a/commands/play.mjs +++ b/commands/play.mjs @@ -240,7 +240,8 @@ export async function run(message, data) { const statusEmbed = new EmbedBuilder() .setColor(getGlobalColor()) - .setDescription(":mag_right: Loading direct stream..."); + .setAuthor({ name: this.t(message, "responses.play.streamPipelineAuthor") }) + .setDescription(this.t(message, "responses.play.loadingDirectStream")); let statusMsg = null; try { statusMsg = await message.reply({ embeds: [statusEmbed] }); } catch(e) { logger.warn("[Play] Error:", e?.message); } @@ -255,7 +256,8 @@ export async function run(message, data) { const statusEmbed = new EmbedBuilder() .setColor(getGlobalColor()) - .setDescription(":mag_right: Resolving stream via Lavalink..."); + .setAuthor({ name: this.t(message, "responses.play.streamPipelineAuthor") }) + .setDescription(this.t(message, "responses.play.resolvingLavalinkStream")); let statusMsg = null; try { statusMsg = await message.reply({ embeds: [statusEmbed] }); } catch(e) { logger.warn("[Play] Error:", e?.message); } @@ -285,6 +287,7 @@ export async function run(message, data) { const searchEmbed = new EmbedBuilder() .setColor(getGlobalColor()) + .setAuthor({ name: `🔎 ${this.t(message, "responses.play.searching")}` }) .setDescription(this.t(message, "responses.play.searching")); let statusMsg = null; try { statusMsg = await message.reply({ embeds: [searchEmbed] }); } catch(e) { logger.warn("[Play] Error:", e?.message); } @@ -302,6 +305,7 @@ export async function run(message, data) { const searchEmbed = new EmbedBuilder() .setColor(getGlobalColor()) + .setAuthor({ name: `🔎 ${this.t(message, "responses.play.searching")}` }) .setDescription(this.t(message, "responses.play.searching")); let statusMsg = null; try { statusMsg = await message.reply({ embeds: [searchEmbed] }); } catch(e) { logger.warn("[Play] Error:", e?.message); } @@ -329,7 +333,7 @@ export async function run(message, data) { if (!lowerQuery && resolveProvider && (resolveProvider === "lf" || resolveProvider === "lastfm")) { return message.reply({ - embeds: [new EmbedBuilder().setColor(ERROR_COLOR).setDescription([ + embeds: [new EmbedBuilder().setColor(ERROR_COLOR).setAuthor({ name: this.t(message, "responses.play.lastfmPlaybackAuthor") }).setDescription([ `❌ Specify a Last.fm category after \`lf:\``, ``, `**Available categories:**`, @@ -433,8 +437,8 @@ export async function run(message, data) { const searchEmbed = new EmbedBuilder() .setColor(getGlobalColor()) - .setDescription(this.t(message, "responses.play.searching")) - ; + .setAuthor({ name: `🔎 ${this.t(message, "responses.play.searching")}` }) + .setDescription(this.t(message, "responses.play.searching")); let statusMsg = null; try { diff --git a/commands/player/lyrics.mjs b/commands/player/lyrics.mjs index 434d098..3bda538 100644 --- a/commands/player/lyrics.mjs +++ b/commands/player/lyrics.mjs @@ -100,7 +100,7 @@ export async function openLyricsViewer(bot, msg, player, refresh, session) { const embed = new EmbedBuilder() .setColor(getGlobalColor()) - .setAuthor({ name: "🎤 " + (bot.t(msg, "responses.lyrics.author") || "Lyrics") }) + .setAuthor({ name: bot.t(msg, "responses.lyrics.lyricsAuthor") }) .setTitle(title) .setDescription(desc) .setFooter({ text: footerText }); diff --git a/commands/playnext.mjs b/commands/playnext.mjs index c6a1ba8..dd5a0b3 100644 --- a/commands/playnext.mjs +++ b/commands/playnext.mjs @@ -57,8 +57,8 @@ export async function run(message, data) { const searchEmbed = new EmbedBuilder() .setColor(getGlobalColor()) - .setDescription(this.t(message, "responses.playnext.searching")) - ; + .setAuthor({ name: `🔎 ${this.t(message, "responses.playnext.searching")}` }) + .setDescription(this.t(message, "responses.playnext.searching")); let statusMsg; try { diff --git a/commands/radio.mjs b/commands/radio.mjs index 27a1585..e0b7a4a 100644 --- a/commands/radio.mjs +++ b/commands/radio.mjs @@ -5,7 +5,6 @@ import { CommandBuilder } from "../src/commands/index.mjs"; import { EmbedBuilder } from "@fluxerjs/core"; -import { getGlobalColor } from "../src/ui/index.mjs"; import { logger } from "../src/core/Logger.mjs"; import { NUMBER_EMOJIS, CANCEL_EMOJI, PREV_EMOJI, NEXT_EMOJI } from "../src/utils/UI.mjs"; @@ -38,7 +37,13 @@ export const command = function() { */ export async function run(msg, data) { const radios = this.config.radio; - if (!radios?.length) return msg.reply(this.t(msg, "responses.radio.noStations")); + if (!radios?.length) { + const embed = new EmbedBuilder() + .setColor(0xe9196c) + .setAuthor({ name: this.t(msg, "responses.radio.stationsAuthor") || "24/7 Radio Station Directory" }) + .setDescription(this.t(msg, "responses.radio.noStations")); + return msg.reply({ embeds: [embed] }); + } const input = (data.get("station")?.value ?? "").trim().toLowerCase(); @@ -100,7 +105,11 @@ export async function run(msg, data) { settled = true; unobserve(); clearReactions().catch(() => {}); - listMsg.edit(this.t(msg, "responses.radio.timedOut")).catch(() => {}); + const timedOutEmbed = new EmbedBuilder() + .setColor(0xe9196c) + .setAuthor({ name: this.t(msg, "responses.radio.stationsAuthor") || "24/7 Radio Station Directory" }) + .setDescription(this.t(msg, "responses.radio.timedOut")); + listMsg.edit({ embeds: [timedOutEmbed] }).catch(() => {}); }, 60_000); const normalize = (s) => s.replace(/\uFE0F/g, ""); @@ -114,7 +123,11 @@ export async function run(msg, data) { clearTimeout(timeout); unobserve(); await clearReactions(); - listMsg.edit(this.t(msg, "responses.radio.cancelled")).catch(() => {}); + const cancelEmbed = new EmbedBuilder() + .setColor(0xe9196c) + .setAuthor({ name: this.t(msg, "responses.radio.stationsAuthor") || "24/7 Radio Station Directory" }) + .setDescription(this.t(msg, "responses.radio.cancelled")); + listMsg.edit({ embeds: [cancelEmbed] }).catch(() => {}); return; } if (emoji === normalize(NEXT_EMOJI)) page = (page + 1) % totalPages; @@ -143,7 +156,11 @@ export async function run(msg, data) { const radio = radios.find(r => String(r.name ?? "").toLowerCase() === input); if (!radio) { const names = radios.map(r => `\`${r.name ?? "station"}\``).join(", "); - return msg.reply(this.t(msg, "responses.radio.unknownStation", { station: input, stations: names })); + const embed = new EmbedBuilder() + .setColor(0xe9196c) + .setAuthor({ name: this.t(msg, "responses.radio.stationsAuthor") || "24/7 Radio Station Directory" }) + .setDescription(this.t(msg, "responses.radio.unknownStation", { station: input, stations: names })); + return msg.reply({ embeds: [embed] }); } return playStation(this, msg, radio); } @@ -180,13 +197,14 @@ async function playStation(ctx, msg, radio, editTarget = null) { const skipHint = ctx.t(msg, "responses.radio.skipHint", { prefix }) || `_Use \`${prefix}skip\` to stop the radio, or \`${prefix}radio list\` to switch stations._`; const embed = new EmbedBuilder() .setColor(0xe9196c) + .setAuthor({ name: ctx.t(msg, "responses.radio.liveRadioAuthor") }) .setTitle(`📻 ${stationName}`) .setDescription( stationLine + `${stationDesc}\n\n` + skipHint ) - ; + .setFooter({ text: ctx.t(msg, "responses.radio.webRadioFooter", { prefix }) }); if (editTarget) editTarget.edit({ embeds: [embed] }).catch(() => {}); else msg.reply({ embeds: [embed] }).catch(() => {}); diff --git a/commands/reload.mjs b/commands/reload.mjs index ef6f408..487b0b3 100644 --- a/commands/reload.mjs +++ b/commands/reload.mjs @@ -113,9 +113,10 @@ async function showPaged(msg, title, lines, pageSize = 14) { embeds: [ new EmbedBuilder() .setColor(getGlobalColor()) + .setAuthor({ name: this.t ? this.t(msg, "responses.reload.author") : "🔄 Module Hot Reload" }) .setTitle(title) .setDescription(pages[n].join("\n") + (pages.length > 1 ? `\n\nPage **${n + 1}** / **${pages.length}**` : "")) - + .setFooter({ text: this.t ? this.t(msg, "responses.reload.footer") : "Owner Diagnostics • Dynamic Module Loader" }) ] }); diff --git a/commands/resume.mjs b/commands/resume.mjs index 075b0f5..3df6ba7 100644 --- a/commands/resume.mjs +++ b/commands/resume.mjs @@ -29,7 +29,10 @@ export async function run(message) { const current = p.queue.getCurrent(); if (!p.connection || !current) { - const embed = new EmbedBuilder().setColor(0xe9196c).setDescription(this.t(message, "responses._common.nothingPlaying")); + const embed = new EmbedBuilder() + .setColor(0xe9196c) + .setAuthor({ name: `▶️ ${this.t(message, "responses.resume.resumedTitle")}` }) + .setDescription(this.t(message, "responses._common.nothingPlaying")); return message.reply({ embeds: [embed] }); } diff --git a/commands/seek.mjs b/commands/seek.mjs index 7a30a7a..45dc673 100644 --- a/commands/seek.mjs +++ b/commands/seek.mjs @@ -32,32 +32,37 @@ export async function run(msg, data) { const p = await this.getPlayer(msg, true, true, false); if (!p) return; + const seekNotice = (desc) => new EmbedBuilder() + .setColor(0xe9196c) + .setAuthor({ name: `⏩ ${this.t(msg, "responses.seek.seekTitle")}` }) + .setDescription(desc); + if (!p.queue?.getCurrent()) { - return msg.reply({ embeds: [new EmbedBuilder().setColor(0xe9196c).setDescription(this.t(msg, "responses.seek.nothingPlaying"))] }); + return msg.reply({ embeds: [seekNotice(this.t(msg, "responses.seek.nothingPlaying"))] }); } if (p._paused) { - return msg.reply({ embeds: [new EmbedBuilder().setColor(0xe9196c).setDescription(this.t(msg, "responses.seek.paused"))] }); + return msg.reply({ embeds: [seekNotice(this.t(msg, "responses.seek.paused"))] }); } const current = p.queue.getCurrent(); if (current?.type === "radio" || current?.isLive || p._getTrackDurationMs(current) === 0) { - return msg.reply({ embeds: [new EmbedBuilder().setColor(0xe9196c).setDescription(this.t(msg, "responses.seek.live"))] }); + return msg.reply({ embeds: [seekNotice(this.t(msg, "responses.seek.live"))] }); } const trimmed = String(positionInput ?? "").trim(); const isZero = /^0+(:0+)?(:0+)?$/.test(trimmed); const seekMs = isZero ? 0 : Utils.parseDuration(trimmed); if (seekMs === null || isNaN(seekMs) || seekMs < 0 || (!isZero && seekMs === 0)) { - return msg.reply({ embeds: [new EmbedBuilder().setColor(0xe9196c).setDescription(this.t(msg, "responses.seek.invalidFormat"))] }); + return msg.reply({ embeds: [seekNotice(this.t(msg, "responses.seek.invalidFormat"))] }); } const trackDuration = p._getTrackDurationMs(p.queue.getCurrent()); if (trackDuration > 0 && seekMs >= trackDuration) { const maxStr = Utils.prettifyMS(trackDuration); - return msg.reply({ embeds: [new EmbedBuilder().setColor(0xe9196c).setDescription(this.t(msg, "responses.seek.exceedsDuration", { duration: maxStr }))] }); + return msg.reply({ embeds: [seekNotice(this.t(msg, "responses.seek.exceedsDuration", { duration: maxStr }))] }); } try { @@ -91,9 +96,9 @@ export async function run(msg, data) { return msg.reply({ embeds: [embed] }); } else { - return msg.reply({ embeds: [new EmbedBuilder().setColor(0xe9196c).setDescription(this.t(msg, "responses.seek.notSupported"))] }); + return msg.reply({ embeds: [seekNotice(this.t(msg, "responses.seek.notSupported"))] }); } } catch (err) { - return msg.reply({ embeds: [new EmbedBuilder().setColor(0xe9196c).setDescription(this.t(msg, "responses.seek.failed", { error: err.message }))] }); + return msg.reply({ embeds: [seekNotice(this.t(msg, "responses.seek.failed", { error: err.message }))] }); } } diff --git a/commands/servers.mjs b/commands/servers.mjs index 08eeef0..f56422a 100644 --- a/commands/servers.mjs +++ b/commands/servers.mjs @@ -30,9 +30,10 @@ export async function run(msg) { if (guilds.length === 0) { const emptyEmbed = new EmbedBuilder() .setColor(getGlobalColor()) + .setAuthor({ name: this.t(msg, "responses.servers.serversAuthor") }) .setTitle(this.t(msg, "responses.servers.title", { count: 0 })) .setDescription(this.t(msg, "responses.servers.noServers")) - ; + .setFooter({ text: this.t(msg, "responses.servers.listComplete") }); return msg.reply({ embeds: [emptyEmbed] }); } diff --git a/commands/shuffle.mjs b/commands/shuffle.mjs index 267d8ad..a5fbd8a 100644 --- a/commands/shuffle.mjs +++ b/commands/shuffle.mjs @@ -30,6 +30,7 @@ export async function run(message) { if (p.isEmpty()) { const embed = new EmbedBuilder() .setColor(0xe9196c) + .setAuthor({ name: `🔀 ${this.t(message, "responses.shuffle.shuffledTitle")}` }) .setDescription(this.t(message, "responses._common.nothingPlaying")); return message.reply({ embeds: [embed] }); } diff --git a/commands/skip.mjs b/commands/skip.mjs index f1f13f9..2e276b7 100644 --- a/commands/skip.mjs +++ b/commands/skip.mjs @@ -7,7 +7,7 @@ import { CommandBuilder } from "../src/commands/index.mjs"; import { EmbedBuilder } from "@fluxerjs/core"; -import { getGlobalColor, cleanId } from "../src/ui/index.mjs"; +import { cleanId } from "../src/ui/index.mjs"; import { countHumansInChannel } from "../src/voice/VoiceStateResolver.mjs"; import { Utils } from "../src/utils/Utils.mjs"; @@ -29,7 +29,10 @@ async function doSkip(ctx, message, p) { const err = p.skip(); if (!p.connection || !current) { - const embed = new EmbedBuilder().setColor(0xe9196c).setDescription(err); + const embed = new EmbedBuilder() + .setColor(0xe9196c) + .setAuthor({ name: `⏭️ ${ctx.t(message, "responses.skip.skippedTitle")}` }) + .setDescription(err); return message.reply({ embeds: [embed] }); } @@ -81,7 +84,10 @@ export async function run(message) { const current = p.queue.getCurrent(); if (!p.connection || !current) { - const embed = new EmbedBuilder().setColor(0xe9196c).setDescription(this.t(message, "responses._common.nothingPlaying")); + const embed = new EmbedBuilder() + .setColor(0xe9196c) + .setAuthor({ name: `⏭️ ${this.t(message, "responses.skip.skippedTitle")}` }) + .setDescription(this.t(message, "responses._common.nothingPlaying")); return message.reply({ embeds: [embed] }); } diff --git a/commands/speed.mjs b/commands/speed.mjs index 3884318..9a24f63 100644 --- a/commands/speed.mjs +++ b/commands/speed.mjs @@ -46,12 +46,12 @@ export async function run(message, data) { delete existingPayload.timescale; await p.applyFilter(existingPayload, Object.keys(existingPayload).length > 0 ? p.activeFilter : null); embed.setAuthor({ name: `⏩ ${this.t(message, "responses.speed.speedTitle")}` }) - .setTitle("1.0× Normal") + .setTitle(this.t(message, "responses.speed.normalRate")) .setDescription(this.t(message, "responses.speed.reset")) .setFooter({ text: this.t(message, "responses.speed.resetHint", { prefix }) }); } else { embed.setAuthor({ name: `⏩ ${this.t(message, "responses.speed.speedTitle")}` }) - .setTitle("1.0× Normal") + .setTitle(this.t(message, "responses.speed.normalRate")) .setDescription(this.t(message, "responses.speed.current", { speed: "1.0", prefix })) .setFooter({ text: this.t(message, "responses.speed.resetHint", { prefix }) }); } diff --git a/commands/support.mjs b/commands/support.mjs index 84d49c2..fec3613 100644 --- a/commands/support.mjs +++ b/commands/support.mjs @@ -27,17 +27,12 @@ export function run(msg) { const embed = new EmbedBuilder() .setColor(getGlobalColor()) .setAuthor({ - name: "Remix Support Community", + name: this.t(msg, "responses.support.title"), iconURL: botIcon }) - .setTitle(this.t(msg, "responses.support.title")) - .setDescription( - "Need help, want to report a bug, or suggest a new feature? Join our official community server:\n\n" + - "🚀 **[Join Support Server (fluxer.gg/remix)](https://fluxer.gg/remix)**\n\n" + - "🟢 **24/7 Community & Staff Assistance**\n" + - "Feature requests, announcements, and audio troubleshooting guides." - ) - .setFooter({ text: "Remix Support • fluxer.gg/remix" }); + .setTitle("Remix HQ (fluxer.gg/remix)") + .setDescription(this.t(msg, "responses.support.description")) + .setFooter({ text: "fluxer.gg/remix" }); if (botIcon) embed.setThumbnail(botIcon); msg.reply({ embeds: [embed] }).catch(() => {}); diff --git a/commands/test.mjs b/commands/test.mjs index e065c28..3267028 100644 --- a/commands/test.mjs +++ b/commands/test.mjs @@ -26,7 +26,10 @@ export const command = new CommandBuilder() export async function run(msg, data) { const guild = msg.channel?.channel?.guild ?? msg.message?.guild; if (!guild) { - const embed = new EmbedBuilder().setColor(getGlobalColor()).setDescription(this.t(msg, "responses.test.notInServer")); + const embed = new EmbedBuilder() + .setColor(getGlobalColor()) + .setAuthor({ name: this.t(msg, "responses.test.author") }) + .setDescription(this.t(msg, "responses.test.notInServer")); return msg.reply({ embeds: [embed] }); } @@ -54,7 +57,11 @@ export async function run(msg, data) { } if (channelCounts.size === 0) { - const embed = new EmbedBuilder().setColor(getGlobalColor()).setDescription(this.t(msg, "responses.test.noOneInVoice")); + const embed = new EmbedBuilder() + .setColor(getGlobalColor()) + .setAuthor({ name: this.t(msg, "responses.test.author") }) + .setDescription(this.t(msg, "responses.test.noOneInVoice")) + .setFooter({ text: this.t(msg, "responses.test.footerZero") }); return msg.reply({ embeds: [embed] }); } @@ -93,8 +100,9 @@ export async function run(msg, data) { const embed = new EmbedBuilder() .setColor(getGlobalColor()) + .setAuthor({ name: this.t(msg, "responses.test.author") }) .setTitle(this.t(msg, "responses.test.title")) .setDescription(desc.trim().slice(0, 4096)) - ; + .setFooter({ text: this.t(msg, "responses.test.footerCount", { count: channelCounts.size }) }); msg.reply({ embeds: [embed] }).catch(() => {}); } diff --git a/commands/thumbnail.mjs b/commands/thumbnail.mjs index 0536c78..b57c155 100644 --- a/commands/thumbnail.mjs +++ b/commands/thumbnail.mjs @@ -29,6 +29,7 @@ export async function run(msg) { if (!current) { const embed = new EmbedBuilder() .setColor(0xe9196c) + .setAuthor({ name: `🖼️ ${this.t(msg, "responses.thumbnail.thumbTitle")}` }) .setDescription(this.t(msg, "responses._common.nothingPlaying")); return msg.reply({ embeds: [embed] }).catch(() => {}); } @@ -36,6 +37,7 @@ export async function run(msg) { if (!current.thumbnail) { const embed = new EmbedBuilder() .setColor(0xe9196c) + .setAuthor({ name: `🖼️ ${this.t(msg, "responses.thumbnail.thumbTitle")}` }) .setDescription(this.t(msg, "responses.thumbnail.noArtwork")); return msg.reply({ embeds: [embed] }).catch(() => {}); } diff --git a/index.mjs b/index.mjs index fd94339..171da3b 100644 --- a/index.mjs +++ b/index.mjs @@ -11,7 +11,7 @@ import { initErrorChannel, reportCrash } from "./src/core/ErrorChannel.mjs"; const remix = new Remix(); -initErrorChannel({ config: remix.config, client: remix.client }); +initErrorChannel({ config: remix.config, client: remix.client, locale: remix.locale }); /** * Check whether an error is a known-ignorable WebSocket transport crash from diff --git a/src/core/ErrorChannel.mjs b/src/core/ErrorChannel.mjs index 85ae490..ab0db72 100644 --- a/src/core/ErrorChannel.mjs +++ b/src/core/ErrorChannel.mjs @@ -29,9 +29,10 @@ */ import util from "node:util"; +import { EmbedBuilder } from "@fluxerjs/core"; import { logger } from "./Logger.mjs"; -const API_BASE = "https://api.fluxer.app/v1"; +const DEFAULT_API_BASE = "https://api.fluxer.app/v1"; const SEND_TIMEOUT_MS = 5_000; const CRASH_SEND_BUDGET_MS = 3_500; const FORWARD_DEDUP_MS = 60_000; @@ -40,6 +41,7 @@ const FAIL_LOG_COOLDOWN_MS = 30_000; const CONTENT_MAX = 1_900; const BODY_MAX = 1_500; +let _apiBase = DEFAULT_API_BASE; let _enabled = false; let _channelId = null; let _token = null; @@ -89,15 +91,24 @@ const _originals = { error: null, warn: null, info: null }; * @param {object} [opts.config] - Full bot configuration (uses config.errorLogChannel and config.token). * @param {object} [opts.client] - The Fluxer client (provides client.rest.post for sending). */ -export function initErrorChannel({ config, client } = {}) { +export function initErrorChannel({ config, client, locale } = {}) { const cfg = config?.errorLogChannel ?? {}; _channelId = typeof cfg.channelId === "string" && cfg.channelId.trim() ? cfg.channelId.trim() : null; _enabled = cfg.enabled === true && Boolean(_channelId); _token = typeof config?.token === "string" ? config.token : null; _client = client ?? null; + _locale = locale ?? client?.locale ?? null; _minIntervalMs = Number(cfg.minIntervalMs) > 0 ? Number(cfg.minIntervalMs) : 1_500; _maxQueue = Number(cfg.maxQueue) > 0 ? Number(cfg.maxQueue) : 40; + const customBase = config?.apiBase ?? config?.["fluxer.js"]?.api ?? client?.options?.rest?.api ?? null; + if (typeof customBase === "string" && customBase.trim()) { + const trimmed = customBase.trim().replace(/\/+$/, ""); + _apiBase = trimmed.endsWith("/v1") ? trimmed : `${trimmed}/v1`; + } else { + _apiBase = DEFAULT_API_BASE; + } + if (!_enabled) { console.info(`[ErrorChannel] Disabled (${!_channelId ? "no channelId configured" : "enabled=false"}).`); return; @@ -119,14 +130,41 @@ export function isLogChannelEnabled() { } /** @private Send the one-time startup confirmation through the real send path. */ +/** + * @private + * Resolve a localized string from the bot's configured locale or fallback. + * @param {string} key + * @param {Object} [vars={}] + * @param {string} [fallback=""] + * @returns {string} + */ +function _t(key, vars = {}, fallback = "") { + try { + if (_locale && typeof _locale.translate === "function") { + const res = _locale.translate(null, `responses.errorChannel.${key}`, vars); + if (res && res !== `responses.errorChannel.${key}`) return res; + } + } catch (_) { } + return fallback; +} + function _announceOnce() { if (_announced) return; _announced = true; - const content = - "✅ **Log channel connected** — from now on this channel receives:\n" + - "🔴 every error · 🟡 every warning · 🚨 crash reports (with uptime + memory)\n" + - "Verify delivery any time with the `logtest` command."; - _sendWithFallback(content).catch((e) => { + const embed = new EmbedBuilder() + .setColor(0x2ecc71) + .setAuthor({ name: _t("author", {}, "🛠️ Error Channel Telemetry") }) + .setTitle(`✅ ${_t("connectedTitle", {}, "Log Channel Connected")}`) + .setDescription(_t("connectedDesc", {}, + "Real-time diagnostic and crash forwarding is now active for this channel.\n\n" + + "🔴 **Errors:** Database, player, audio node, and gateway exceptions\n" + + "🟡 **Warnings:** Rate-limits, recoverable reconnections, and warnings\n" + + "🚨 **Crash Reports:** Fatal process exceptions with memory and uptime stats" + )) + .setFooter({ text: _t("connectedFooter", {}, "Remix Watchdog • Verify delivery anytime with %logtest") }); + if (typeof embed.setTimestamp === "function") embed.setTimestamp(); + + _sendWithFallback(embed).catch((e) => { console.error( `[ErrorChannel] Startup notice FAILED for channel ${_channelId}: ${e?.message ?? e}` + " — check that the bot has View Channel + Send Messages permission there and that errorLogChannel.channelId is correct." @@ -155,20 +193,38 @@ export async function reportCrash(title, err, { fatal = false } = {}) { _lastCrashReportTime = now; try { const body = _formatArgs([err]).split("```").join("‹›"); - const now = Date.now(); const key = body.slice(0, 300); if (_crashDedup.get(key) && now - _crashDedup.get(key) < CRASH_DEDUP_MS) return false; _crashDedup.set(key, now); if (_crashDedup.size > 100) _crashDedup.delete(_crashDedup.keys().next().value); const mem = Math.round(process.memoryUsage().rss / 1_048_576); - const content = - `${fatal ? "🚨" : "⚠️"} **${title}**\n${body.slice(0, BODY_MAX)}\n— uptime ${_uptime()} · rss ${mem}MB` - .slice(0, CONTENT_MAX); + const embedColor = fatal ? 0xe74c3c : 0xf39c12; + const authorTitle = fatal + ? _t("crashFatalAuthor", {}, "🚨 Fatal Process Crash") + : _t("crashAlertAuthor", {}, "⚠️ Process Alert"); + const embedTitle = fatal + ? _t("crashFatalTitle", { title }, `🚨 Fatal Crash: ${title}`) + : _t("crashAlertTitle", { title }, `⚠️ Process Alert: ${title}`); + + const embed = new EmbedBuilder() + .setColor(embedColor) + .setAuthor({ name: authorTitle }) + .setTitle(embedTitle) + .setDescription("```js\n" + body.slice(0, 1800) + "\n```") + .addFields( + { name: _t("uptimeField", {}, "⏱️ Uptime"), value: `\`${_uptime()}\``, inline: true }, + { name: _t("memoryField", {}, "💾 Memory (RSS)"), value: `\`${mem} MB\``, inline: true } + ) + .setFooter({ text: _t("crashFooter", {}, "Process Error Telemetry • Unhandled Exception") }); + if (typeof embed.setTimestamp === "function") embed.setTimestamp(); try { - await Promise.race([_sendWithFallback(content), _sleep(CRASH_SEND_BUDGET_MS)]); - return true; + const delivered = await Promise.race([ + _sendWithFallback(embed).then(() => true), + _sleep(CRASH_SEND_BUDGET_MS).then(() => false), + ]); + return Boolean(delivered); } catch (_) { return false; } @@ -193,6 +249,8 @@ export function _resetErrorChannelForTests() { _channelId = null; _token = null; _client = null; + _locale = null; + _apiBase = DEFAULT_API_BASE; _queue = []; _dropped = 0; _flushing = false; @@ -230,14 +288,37 @@ function _forward(level, tag, args) { if (tag.startsWith("[ErrorChannel]") || tag.startsWith("[Error_Handling]")) return; const body = _formatArgs(args); const now = Date.now(); - const emoji = level === "error" ? "🔴" : level === "info" ? "ℹ️" : "🟡"; - const text = body ? `${emoji} **${tag}** ${body}` : `${emoji} **${tag}**`; const key = `${level}|${tag}|${(body || tag).slice(0, 200)}`; const last = _forwardDedup.get(key); if (last && now - last < FORWARD_DEDUP_MS) return; _forwardDedup.set(key, now); if (_forwardDedup.size > 300) _forwardDedup.delete(_forwardDedup.keys().next().value); - _enqueue(text.slice(0, CONTENT_MAX)); + + const color = level === "error" ? 0xe74c3c : level === "info" ? 0x3498db : 0xf1c40f; + const author = level === "error" + ? _t("forwardErrorAuthor", {}, "🔴 System Error") + : level === "info" + ? _t("forwardInfoAuthor", {}, "ℹ️ System Info") + : _t("forwardWarnAuthor", {}, "🟡 System Warning"); + + let desc; + if (body) { + desc = body.length > 200 + ? "```\n" + body.slice(0, 3900) + "\n```" + : `**${body}**`; + } else { + desc = _t("forwardNoDetails", {}, "*No additional details provided.*"); + } + + const embed = new EmbedBuilder() + .setColor(color) + .setAuthor({ name: author }) + .setTitle(tag) + .setDescription(desc) + .setFooter({ text: _t("forwardFooter", {}, "Logger Telemetry • Automatic Forwarding") }); + if (typeof embed.setTimestamp === "function") embed.setTimestamp(); + + _enqueue(embed); } catch (_) { } } @@ -281,7 +362,14 @@ async function _runFlush() { if (_dropped > 0 && _enabled) { const n = _dropped; _dropped = 0; - await _sendQuietly(`📦 ${n} additional error log message(s) were dropped during a flood to protect rate limits.`); + const floodEmbed = new EmbedBuilder() + .setColor(0xe67e22) + .setAuthor({ name: _t("floodAuthor", {}, "📦 Log Flood Gate") }) + .setTitle(_t("floodTitle", {}, "Log Messages Dropped")) + .setDescription(_t("floodDesc", { count: n }, `⚠️ **${n}** additional log message(s) were dropped during a flood to protect API rate limits.`)) + .setFooter({ text: _t("floodFooter", {}, "Rate Limit Guard • ErrorChannel") }); + if (typeof floodEmbed.setTimestamp === "function") floodEmbed.setTimestamp(); + await _sendQuietly(floodEmbed); } } finally { _flushing = false; @@ -301,13 +389,39 @@ async function _sendQuietly(content) { } } +/** + * @private + * Normalize a send payload into { content, embeds } format expected by Fluxer API. + * @param {string|object|EmbedBuilder} data + * @returns {object} + */ +function _normalizePayload(data) { + if (data instanceof EmbedBuilder) { + const raw = typeof data.toJSON === "function" ? data.toJSON() : data; + return { embeds: [raw] }; + } + if (data && typeof data === "object") { + if (Array.isArray(data.embeds)) { + const rawEmbeds = data.embeds.map(e => (typeof e?.toJSON === "function" ? e.toJSON() : e)); + return { ...data, embeds: rawEmbeds }; + } + if (data.embed) { + const raw = typeof data.embed.toJSON === "function" ? data.embed.toJSON() : data.embed; + return { embeds: [raw] }; + } + return data; + } + return { content: String(data ?? "") }; +} + /** @private Send through the client's REST client when available, else raw fetch. */ -async function _send(content) { +async function _send(payload) { if (!_enabled || _isRateLimited()) return; const rest = _client?.rest; + const body = _normalizePayload(payload); if (typeof rest?.post === "function") { try { - await rest.post(`/channels/${_channelId}/messages`, { body: { content } }); + await rest.post(`/channels/${_channelId}/messages`, { body }); _consecutiveFailures = 0; return; } catch (err) { @@ -324,29 +438,30 @@ async function _send(content) { throw err; } } - await _sendRaw(content); + await _sendRaw(payload); } /** @private Send via client REST, retrying once via raw fetch when that throws. */ -async function _sendWithFallback(content) { +async function _sendWithFallback(payload) { if (!_enabled || _isRateLimited()) return; try { - await _send(content); + await _send(payload); } catch (_) { if (!_enabled || _isRateLimited()) return; - await _sendRaw(content); + await _sendRaw(payload); } } /** @private Send via a direct Fluxer REST call (Authorization: Bot ). */ -async function _sendRaw(content) { - if (!_enabled || _isRateLimited()) return; +async function _sendRaw(payload) { + if (!_enabled || !_token || _isRateLimited()) return; + const body = _normalizePayload(payload); let res; try { - res = await fetch(`${API_BASE}/channels/${_channelId}/messages`, { + res = await fetch(`${_apiBase}/channels/${_channelId}/messages`, { method: "POST", headers: { "Authorization": `Bot ${_token}`, "Content-Type": "application/json" }, - body: JSON.stringify({ content }), + body: JSON.stringify(body), signal: AbortSignal.timeout(SEND_TIMEOUT_MS), }); } catch (err) { diff --git a/src/music/PlayerLifecycleMixin.mjs b/src/music/PlayerLifecycleMixin.mjs index 1e3934e..7a9314b 100644 --- a/src/music/PlayerLifecycleMixin.mjs +++ b/src/music/PlayerLifecycleMixin.mjs @@ -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); diff --git a/storage/locales/bot/ar-SA.json b/storage/locales/bot/ar-SA.json index 7e55b93..779452c 100644 --- a/storage/locales/bot/ar-SA.json +++ b/storage/locales/bot/ar-SA.json @@ -269,7 +269,14 @@ "voiceTitle": "🔧 تصحيح الصوت", "summary": "📊 **الملخص**", "pageLabel": "صفحة {{page}}/{{total}}", - "navigateHint": "استخدم ⬅️➡️ للتنقل" + "navigateHint": "استخدم ⬅️➡️ للتنقل", + "author": "🛠️ القياس التشخيصي عن بعد", + "rejoinAuthor": "🛠️ وحدة تحكم إعادة الانضمام الصوتي", + "voiceAuthor": "🛠️ تشخيص الصوت", + "unknownTitle": "تصحيح — هدف غير معروف", + "rejoinFooter": "تشخيص المالك • إعادة انضمام جماعية", + "telemetryFooter": "بيانات الحالة الصوتية • صفحة 1", + "footerHelp": "تشخيص المالك • %debug " }, "eval": { "resultTitle": "نتيجة التقييم", @@ -280,7 +287,8 @@ "pageLabel": "صفحة {{page}}/{{total}}", "navigateHint": "• ⬅️ ➡️ تصفح • ❌ حذف", "deleteHint": "• ❌ حذف", - "controlsExpired": "⌛ انتهت صلاحية عناصر التحكم" + "controlsExpired": "⌛ انتهت صلاحية عناصر التحكم", + "author": "💻 مفسر جافا سكريبت" }, "filter": { "pickerTitle": "🎛️ أداة اختيار الفلاتر الصوتية", @@ -316,7 +324,9 @@ }, "invite": { "title": "ادعُ Remix", - "description": "أضف Remix إلى خادمك مباشرة من [FluxerList]().\n\nانضم إلى مجتمعنا على [fluxer.gg/remix](https://fluxer.gg/remix) للحصول على الدعم والتحديثات والتعليقات المباشرة." + "description": "أضف Remix إلى خادمك مباشرة من [FluxerList]().\n\nانضم إلى مجتمعنا على [fluxer.gg/remix](https://fluxer.gg/remix) للحصول على الدعم والتحديثات والتعليقات المباشرة.", + "addRemixTitle": "أضف ريمكس إلى خادمك", + "footer": "ريمكس • موسيقى مجانية ومفتوحة المصدر" }, "join": { "channelNotFound": "لم أتمكن من العثور على القناة `{{channel}}`\nاستخدم أمر المساعدة لمعرفة المزيد. (`$prefixhelp join`)", @@ -426,7 +436,8 @@ "queueLoop": "تكرار القائمة: **{{state}}**", "songLoop": "تكرار الأغنية: **{{state}}**", "streaming": "📻 بث مباشر **[{{title}}]({{url}})**", - "playingBy": "يعمل **[{{title}}]({{url}})** لـ [{{artist}}]({{artistUrl}})" + "playingBy": "يعمل **[{{title}}]({{url}})** لـ [{{artist}}]({{artistUrl}})", + "nowPlayingAuthor": "🎵 يُعرض الآن" }, "pause": { "nothingPlaying": "❌ لا يوجد شيء يعمل حالياً!", @@ -524,7 +535,12 @@ "serverMutedDesc": "تم كتم البوت بواسطة مسؤول السيرفر. تم إيقاف التشغيل مؤقتاً للحفاظ على موضع الأغنية.", "serverUnmutedAuthor": "🔊 تم إلغاء كتم البوت", "serverUnmutedTitle": "تم استئناف التشغيل", - "serverUnmutedDesc": "تم إلغاء كتم البوت — استئناف التشغيل تلقائياً." + "serverUnmutedDesc": "تم إلغاء كتم البوت — استئناف التشغيل تلقائياً.", + "streamPipelineAuthor": "🔎 مسار تدفق الصوت", + "loadingDirectStream": "🔎 جاري تحميل البث المباشر...", + "resolvingLavalinkStream": "🔎 جاري حل البث عبر Lavalink...", + "lastfmPlaybackAuthor": "🎵 تشغيل Last.fm", + "lastfmSearchAuthor": "🔎 بحث Last.fm" }, "playnext": { "searching": "🔍 جارٍ البحث...", @@ -584,7 +600,9 @@ "nowPlaying": "📻 بث مباشر _{{title}}_ لـ [{{author}}]({{url}}) في <#{{channel}}>", "skipHint": "_استخدم `$prefixskip` لإيقاف الإذاعة، أو `$prefixradio list` لتبديل المحطات._", "prevNext": "⬅️ السابق ➡️ التالي ❌ إلغاء", - "stationsAuthor": "دليل محطات الراديو 24/7" + "stationsAuthor": "دليل محطات الراديو 24/7", + "liveRadioAuthor": "📻 راديو مباشر 24/7", + "webRadioFooter": "{{prefix}}radio list • راديو ويب 24/7" }, "reload": { "indexNoReload": "❌ لا يمكن إعادة تحميل `index.mjs` — قم بإعادة تشغيل كاملة.", @@ -597,7 +615,9 @@ "availableTargetsTitle": "🔄 إعادة التحميل — الأهداف المتاحة", "runHint": "شغّل `$prefixreload <هدف>` أو استخدم كلمة دفعية:", "batchKeywords": "`all` · `commands`", - "resultsHeader": "✅ **{{ok}}** تمت إعادة التحميل · ❌ **{{bad}}** فشل" + "resultsHeader": "✅ **{{ok}}** تمت إعادة التحميل · ❌ **{{bad}}** فشل", + "author": "🔄 إعادة تحميل الوحدات الفورية", + "footer": "تشخيص المالك • محمل الوحدات الديناميكي" }, "remove": { "indexOutOfBounds": "الفهرس خارج النطاق", @@ -830,7 +850,10 @@ "notInServer": "❌ يجب استخدامه في خادم.", "noOneInVoice": "لا يوجد أحد في الصوت.", "title": "🎙️ أعضاء القناة الصوتية", - "channelEntry": "🔊 **{{name}}**: {{count}} عضو" + "channelEntry": "🔊 **{{name}}**: {{count}} عضو", + "author": "📊 تشخيص القنوات الصوتية", + "footerZero": "بيانات الحالة الصوتية • 0 قنوات نشطة", + "footerCount": "إجمالي القنوات النشطة: {{count}} • القياس الصوتي عن بعد" }, "thumbnail": { "nothingPlaying": "لا يوجد شيء يعمل حالياً.", @@ -1224,7 +1247,8 @@ "speedTitle": "تم تعديل سرعة التشغيل", "speedMultiplier": "مضاعف {{speed}}×", "resetHint": "إعادة التعيين في أي وقت بـ {{prefix}}speed", - "applied": "{{emoji}} تم تعيين سرعة التشغيل إلى **{{speed}}×**." + "applied": "{{emoji}} تم تعيين سرعة التشغيل إلى **{{speed}}×**.", + "normalRate": "1.0× عادي" }, "pitch": { "reset": "🎵 تمت إعادة ضبط طبقة الصوت إلى الوضع الطبيعي **1.0×**.", @@ -1233,7 +1257,8 @@ "failed": "❌ فشل تعديل طبقة الصوت: {{reason}}", "pitchTitle": "تم تعديل نبرة الصوت", "pitchMultiplier": "تغيير النبرة {{pitch}}×", - "resetHint": "إعادة التعيين في أي وقت بـ {{prefix}}pitch" + "resetHint": "إعادة التعيين في أي وقت بـ {{prefix}}pitch", + "normalRate": "1.0× عادي" }, "move": { "reorderedAuthor": "🔀 تمت إعادة ترتيب المسار", @@ -1263,6 +1288,35 @@ "author": "التنقل في القائمة • تخطي الأغاني", "title": "تم تخطي {{count}} مسار(مسارات) — الانتقال إلى #{{position}}", "footer": "Remix Music • متبقي {{remaining}} مسار في قائمة الانتظار" + }, + "logtest": { + "author": "🛠️ القياس عن بعد لقناة الأخطاء", + "disabledTitle": "قناة سجل الأخطاء معطلة", + "queuedTitle": "تم إرسال حدث الاختبار", + "footerConfig": "تشخيص المالك • config.errorLogChannel", + "footerPipeline": "تشخيص المالك • مسار logger.error" + }, + "errorChannel": { + "author": "🛠️ القياس عن بُعد لقناة الأخطاء", + "connectedTitle": "تم ربط قناة السجلات بنجاح", + "connectedDesc": "أصبحت خدمة تحويل التشخيصات وتقارير الأعطال الفورية مفعّلة الآن لهذه القناة.\n\n🔴 **الأخطاء:** استثناءات قواعد البيانات والمشغّل وعقد الصوت والبوابة\n🟡 **التحذيرات:** قيود المعدل وإعادة الاتصال القابلة للاسترداد والتحذيرات\n🚨 **تقارير الانهيار:** استثناءات العمليات الحرجة مع إحصائيات الذاكرة ومدة التشغيل", + "connectedFooter": "مراقب ريمكس • تحقق من التوصيل في أي وقت باستخدام $prefixlogtest", + "crashFatalAuthor": "🚨 انهيار حرِج للعملية", + "crashAlertAuthor": "⚠️ تنبيه العملية", + "crashFatalTitle": "🚨 انهيار حرج: {{title}}", + "crashAlertTitle": "⚠️ تنبيه عملية: {{title}}", + "uptimeField": "⏱️ مدة التشغيل", + "memoryField": "💾 الذاكرة (RSS)", + "crashFooter": "القياس عن بُعد لأخطاء العمليات • استثناء غير معالج", + "forwardErrorAuthor": "🔴 خطأ في النظام", + "forwardWarnAuthor": "🟡 تحذير النظام", + "forwardInfoAuthor": "ℹ️ معلومات النظام", + "forwardNoDetails": "*لم يتم تقديم أي تفاصيل إضافية.*", + "forwardFooter": "القياس عن بُعد للسجلات • إعادة توجيه تلقائية", + "floodAuthor": "📦 بوابة تدفق السجلات", + "floodTitle": "تم إسقاط رسائل السجل", + "floodDesc": "⚠️ تم إسقاط **{{count}}** رسالة سجل إضافية أثناء الفيضان لحماية قيود معدل واجهة برمجة التطبيقات.", + "floodFooter": "حارس حد المعدل • ErrorChannel" } } } diff --git a/storage/locales/bot/ckb.json b/storage/locales/bot/ckb.json index 4262b8e..d9918bf 100644 --- a/storage/locales/bot/ckb.json +++ b/storage/locales/bot/ckb.json @@ -269,7 +269,14 @@ "voiceTitle": "🔧 دیباگی دەنگ", "summary": "📊 **پوختە**", "pageLabel": "لاپەڕە {{page}}/{{total}}", - "navigateHint": "بۆ ناوەڕۆک ⬅️➡️ بەکاربهێنە" + "navigateHint": "بۆ ناوەڕۆک ⬅️➡️ بەکاربهێنە", + "author": "🛠️ تەلەمیتری دەستنیشانکردن", + "rejoinAuthor": "🛠️ کۆنترۆڵکەری دووبارە چوونەژوورەوەی دەنگ", + "voiceAuthor": "🛠️ دەستنیشانکردنی دەنگ", + "unknownTitle": "چاککردنی هەڵە — ئامانجی نەزانراو", + "rejoinFooter": "دەستنیشانکردنی خاوەن • چوونەژوورەوەی بەکۆمەڵ", + "telemetryFooter": "تەلەمیتری دۆخی دەنگ • ١ پەڕە", + "footerHelp": "دەستنیشانکردنی خاوەن • %debug " }, "eval": { "resultTitle": "ئەنجامی هەڵسەنگاندن", @@ -280,7 +287,8 @@ "pageLabel": "لاپەڕە {{page}}/{{total}}", "navigateHint": "• ⬅️ ➡️ ناوەڕۆک • ❌ سڕینەوە", "deleteHint": "• ❌ سڕینەوە", - "controlsExpired": "⌛ کۆنتڕۆڵەکان بەسەرچوون" + "controlsExpired": "⌛ کۆنتڕۆڵەکان بەسەرچوون", + "author": "💻 هەڵسەنگێنەری جاڤاسکریپت" }, "filter": { "pickerTitle": "🎛️ هەڵبژاردەری فلتەری دەنگ", @@ -316,7 +324,9 @@ }, "invite": { "title": "Banngکردنی Remix", - "description": "Remix زیاد بکە بۆ سێرڤەرەکەت لەڕێگەی [FluxerList]().\n\nبەشداری کۆمەڵگەکەمان بکە لە [fluxer.gg/remix](https://fluxer.gg/remix) بۆ پشتگیری، نوێکارییەکان، و ڕاوبۆچوونی ڕاستەوخۆ." + "description": "Remix زیاد بکە بۆ سێرڤەرەکەت لەڕێگەی [FluxerList]().\n\nبەشداری کۆمەڵگەکەمان بکە لە [fluxer.gg/remix](https://fluxer.gg/remix) بۆ پشتگیری، نوێکارییەکان، و ڕاوبۆچوونی ڕاستەوخۆ.", + "addRemixTitle": "ڕیمیکس زیادبکە بۆ سێرڤەرەکەت", + "footer": "ڕیمیکس • مۆسیقای بێبەرامبەر و سەرچاوەکراوە" }, "join": { "channelNotFound": "نەتوانرا کەناڵ `{{channel}}` بدۆزرێتەوە\nفەرمانی یارمەتی بەکاربهێنە بۆ زانینی زیاتر. (`$prefixhelp join`)", @@ -426,7 +436,8 @@ "queueLoop": "لووپی ڕیزبەندی: **{{state}}**", "songLoop": "لووپی گۆرانی: **{{state}}**", "streaming": "📻 پەخشی ڕاستەوخۆ **[{{title}}]({{url}})**", - "playingBy": "پەخش دەکرێت **[{{title}}]({{url}})** لەلایەن [{{artist}}]({{artistUrl}})" + "playingBy": "پەخش دەکرێت **[{{title}}]({{url}})** لەلایەن [{{artist}}]({{artistUrl}})", + "nowPlayingAuthor": "🎵 ئێستا پەخش دەکرێت" }, "pause": { "nothingPlaying": "❌ هیچ شتێک پەخش ناکرێت لە ئێستادا!", @@ -524,7 +535,12 @@ "serverMutedDesc": "بۆتەکە لەلایەن بەڕێوەبەری سێرڤەرەوە بێدەنگ کرا. لێدان ڕاگیرا بۆ پاراستنی شوێنی گۆرانی.", "serverUnmutedAuthor": "🔊 بێدەنگی بۆت هەڵگیرا", "serverUnmutedTitle": "لێدان دەستیپێکردەوە", - "serverUnmutedDesc": "بێدەنگی بۆت هەڵگیرا — لێدان بەشێوەی خۆکار دەستیپێکردەوە." + "serverUnmutedDesc": "بێدەنگی بۆت هەڵگیرا — لێدان بەشێوەی خۆکار دەستیپێکردەوە.", + "streamPipelineAuthor": "🔎 هێڵی پەخشی دەنگ", + "loadingDirectStream": "🔎 بارکردنی پەخشی ڕاستەوخۆ...", + "resolvingLavalinkStream": "🔎 شیکارکردنی پەخش لە ڕێگەی Lavalink...", + "lastfmPlaybackAuthor": "🎵 لێدانی Last.fm", + "lastfmSearchAuthor": "🔎 گەڕانی Last.fm" }, "playnext": { "searching": "🔍 گەڕان...", @@ -584,7 +600,9 @@ "nowPlaying": "📻 پەخشی ڕاستەوخۆ _{{title}}_ لەلایەن [{{author}}]({{url}}) لە <#{{channel}}>", "skipHint": "_`$prefixskip` بەکاربهێنە بۆ وەستاندنی ڕادیۆ، یان `$prefixradio list` بۆ گۆڕینی ستەیشنەکان._", "prevNext": "⬅️ پێشوو ➡️ دواتر ❌ پاشگەزبوونەوە", - "stationsAuthor": "ڕێبەری وێستگەکانی ڕادیۆ ٢٤/٧" + "stationsAuthor": "ڕێبەری وێستگەکانی ڕادیۆ ٢٤/٧", + "liveRadioAuthor": "📻 ڕادیۆی ڕاستەوخۆ ٢٤/٧", + "webRadioFooter": "{{prefix}}radio list • ڕادیۆی وێب ٢٤/٧" }, "reload": { "indexNoReload": "❌ `index.mjs` ناتوانرێت بارکردنەوەی خێرا بکات — سەرەتا دەستپێکردنەوەی تەواو بکە.", @@ -597,7 +615,9 @@ "availableTargetsTitle": "🔄 بارکردنەوە — ئامانجە بەردەستەکان", "runHint": "`$prefixreload <ئامانج>` بەکاربهێنە یان وشەیەکی گرووپی بەکاربهێنە:", "batchKeywords": "`all` · `commands`", - "resultsHeader": "✅ **{{ok}}** بارکرانەوە · ❌ **{{bad}}** سەرکەوتوو نەبوون" + "resultsHeader": "✅ **{{ok}}** بارکرانەوە · ❌ **{{bad}}** سەرکەوتوو نەبوون", + "author": "🔄 بارکردنەوەی خێرای مۆدیوول", + "footer": "دەستنیشانکردنی خاوەن • بارکەری دینامیکی مۆدیوول" }, "remove": { "indexOutOfBounds": "ئیندێکس لە دەرەوەی سنوورە", @@ -830,7 +850,10 @@ "notInServer": "❌ پێویستە لە سێرڤەرێکدا بەکارهێنرێت.", "noOneInVoice": "کەس لە دەنگدا نییە.", "title": "🎙️ ئەندامانی کەناڵی دەنگ", - "channelEntry": "🔊 **{{name}}**: {{count}} ئەندام" + "channelEntry": "🔊 **{{name}}**: {{count}} ئەندام", + "author": "📊 دەستنیشانکردنی کەناڵی دەنگی", + "footerZero": "تەلەمیتری دۆخی دەنگ • ٠ کەناڵی چالاک", + "footerCount": "کۆی گشتی کەناڵە چالاکەکان: {{count}} • تەلەمیتری دەنگ" }, "thumbnail": { "nothingPlaying": "هیچ شتێک پەخش ناکرێت لە ئێستادا.", @@ -1224,7 +1247,8 @@ "speedTitle": "خێرایی لێدان ڕێکخرا", "speedMultiplier": "لێکدانی {{speed}}×", "resetHint": "ڕێکخستنەوە لە هەر کاتێکدا بە {{prefix}}speed", - "applied": "{{emoji}} خێرایی لێدان دیاریکرا بۆ **{{speed}}×**." + "applied": "{{emoji}} خێرایی لێدان دیاریکرا بۆ **{{speed}}×**.", + "normalRate": "١.٠× ئاسایی" }, "pitch": { "reset": "🎵 تۆنی دەنگ گەڕایەوە بۆ باری ئاسایی **1.0×**.", @@ -1233,7 +1257,8 @@ "failed": "❌ گۆڕینی تۆنی دەنگ سەرکەوتوو نەبوو: {{reason}}", "pitchTitle": "تۆنی دەنگ ڕێکخرا", "pitchMultiplier": "گۆڕینی تۆن {{pitch}}×", - "resetHint": "ڕێکخستنەوە لە هەر کاتێکدا بە {{prefix}}pitch" + "resetHint": "ڕێکخستنەوە لە هەر کاتێکدا بە {{prefix}}pitch", + "normalRate": "١.٠× ئاسایی" }, "move": { "reorderedAuthor": "🔀 گۆرانی دووبارە ڕیزکرایەوە", @@ -1263,6 +1288,35 @@ "author": "گەڕان لە ڕیزبەندی • پەڕینەوەی گۆرانی", "title": "{{count}} گۆرانی پەڕێندرا — پەڕینەوە بۆ #{{position}}", "footer": "Remix Music • {{remaining}} گۆرانی لە ڕیزبەندی ماوەتەوە" + }, + "logtest": { + "author": "🛠️ تەلەمیتری کەناڵی هەڵەکان", + "disabledTitle": "کەناڵی تۆماری هەڵەکان ناچالاک کراوە", + "queuedTitle": "ڕووداوی تاقیکردنەوە نێردرا", + "footerConfig": "دەستنیشانکردنی خاوەن • config.errorLogChannel", + "footerPipeline": "دەستنیشانکردنی خاوەن • هێڵی logger.error" + }, + "errorChannel": { + "author": "🛠️ داتای پەیوەندی کەناڵی هەڵەکان", + "connectedTitle": "کەناڵی تۆمارەکان بە سەرکەوتوویی بەستراوە", + "connectedDesc": "گواستنەوەی دەستبەجێی کێشەکان و ڕاپۆرتی لەکارکەوتن بۆ ئەم کەناڵە چالاک کرا.\n\n🔴 **هەڵەکان:** کێشەکانی بنکەدراوە، لێدەر، نۆدی دەنگ و دەروازە\n🟡 **ئاگادارییەکان:** سنووردارکردنی ڕێژە، پەیوەندییەوە و هۆشدارییەکان\n🚨 **ڕاپۆرتی لەکارکەوتن:** هەڵە کوشندەکانی پرۆسە لەگەڵ داتای بیرگە و کاتی کارکردن", + "connectedFooter": "چاودێری Remix • دەتوانیت لە هەر کاتێکدا دڵنیا بیتەوە بە $prefixlogtest", + "crashFatalAuthor": "🚨 لەکارکەوتنی کوشندەی پرۆسە", + "crashAlertAuthor": "⚠️ ئاگاداریی پرۆسە", + "crashFatalTitle": "🚨 لەکارکەوتنی کوشندە: {{title}}", + "crashAlertTitle": "⚠️ ئاگاداریی پرۆسە: {{title}}", + "uptimeField": "⏱️ کاتی کارکردن", + "memoryField": "💾 بیرگە (RSS)", + "crashFooter": "تێلیمیترای هەڵەی پرۆسە • هەڵەی چارەسەرنەکراو", + "forwardErrorAuthor": "🔴 هەڵەی سیستەم", + "forwardWarnAuthor": "🟡 ئاگاداریی سیستەم", + "forwardInfoAuthor": "ℹ️ زانیاریی سیستەم", + "forwardNoDetails": "*هیچ وردەکارییەکی زیاتر پێشکەش نەکراوە.*", + "forwardFooter": "تێلیمیترای تۆمارکەر • ناردنی خۆکار", + "floodAuthor": "📦 دەروازەی قەرەباڵغیی تۆمارەکان", + "floodTitle": "پەیامەکانی تۆمار فڕێدران", + "floodDesc": "⚠️ **{{count}}** پەیامی زیاتری تۆمار لە کاتی قەرەباڵغیدا فڕێدران بۆ پاراستنی سنووری خێرایی API.", + "floodFooter": "پارێزەری سنووری خێرایی • ErrorChannel" } } } diff --git a/storage/locales/bot/de-DE.json b/storage/locales/bot/de-DE.json index 1b9a20c..c5b773c 100644 --- a/storage/locales/bot/de-DE.json +++ b/storage/locales/bot/de-DE.json @@ -269,7 +269,14 @@ "voiceTitle": "🔧 Sprach-Debug", "summary": "📊 **Zusammenfassung**", "pageLabel": "Seite {{page}}/{{total}}", - "navigateHint": "Nutze ⬅️➡️ zum Navigieren" + "navigateHint": "Nutze ⬅️➡️ zum Navigieren", + "author": "🛠️ Diagnose-Telemetrie", + "rejoinAuthor": "🛠️ Sprach-Rejoin-Controller", + "voiceAuthor": "🛠️ Sprachdiagnose", + "unknownTitle": "Debug — Unbekanntes Ziel", + "rejoinFooter": "Besitzer-Diagnose • Batch-Rejoin", + "telemetryFooter": "Sprachstatus-Telemetrie • 1 Seite", + "footerHelp": "Besitzer-Diagnose • %debug " }, "eval": { "resultTitle": "Auswertungsergebnis", @@ -280,7 +287,8 @@ "pageLabel": "Seite {{page}}/{{total}}", "navigateHint": "• ⬅️ ➡️ Navigieren • ❌ Löschen", "deleteHint": "• ❌ Löschen", - "controlsExpired": "⌛ Steuerung abgelaufen" + "controlsExpired": "⌛ Steuerung abgelaufen", + "author": "💻 JavaScript-Evaluator" }, "filter": { "pickerTitle": "🎛️ Audio-Filter-Picker", @@ -316,7 +324,9 @@ }, "invite": { "title": "Remix einladen", - "description": "Füge Remix direkt über [FluxerList]() zu deinem Server hinzu.\n\nTritt unserer Community auf [fluxer.gg/remix](https://fluxer.gg/remix) für Support, Updates und Feedback bei." + "description": "Füge Remix direkt über [FluxerList]() zu deinem Server hinzu.\n\nTritt unserer Community auf [fluxer.gg/remix](https://fluxer.gg/remix) für Support, Updates und Feedback bei.", + "addRemixTitle": "Füge Remix zu deinem Server hinzu", + "footer": "Remix • Kostenlose & Open-Source-Musik" }, "join": { "channelNotFound": "Konnte den Kanal `{{channel}}` nicht finden.\nNutze den Hilfe-Befehl für mehr Infos. (`$prefixhelp join`)", @@ -426,7 +436,8 @@ "queueLoop": "Warteschlangen-Schleife: **{{state}}**", "songLoop": "Song-Schleife: **{{state}}**", "streaming": "📻 Streamt **[{{title}}]({{url}})**", - "playingBy": "Spielt **[{{title}}]({{url}})** von [{{artist}}]({{artistUrl}})" + "playingBy": "Spielt **[{{title}}]({{url}})** von [{{artist}}]({{artistUrl}})", + "nowPlayingAuthor": "🎵 Aktuelle Wiedergabe" }, "pause": { "nothingPlaying": "❌ Es wird gerade nichts abgespielt!", @@ -524,7 +535,12 @@ "serverMutedDesc": "Der Bot wurde von einem Server-Administrator stummgeschaltet. Die Wiedergabe wurde pausiert, um die Position zu sichern.", "serverUnmutedAuthor": "🔊 Bot-Stummschaltung aufgehoben", "serverUnmutedTitle": "Wiedergabe fortgesetzt", - "serverUnmutedDesc": "Die Stummschaltung des Bots wurde aufgehoben — Wiedergabe wird automatisch fortgesetzt." + "serverUnmutedDesc": "Die Stummschaltung des Bots wurde aufgehoben — Wiedergabe wird automatisch fortgesetzt.", + "streamPipelineAuthor": "🔎 Audiostream-Pipeline", + "loadingDirectStream": "🔎 Direkter Stream wird geladen...", + "resolvingLavalinkStream": "🔎 Stream wird über Lavalink aufgelöst...", + "lastfmPlaybackAuthor": "🎵 Last.fm-Wiedergabe", + "lastfmSearchAuthor": "🔎 Last.fm-Suche" }, "playnext": { "searching": "🔍 Suche...", @@ -584,7 +600,9 @@ "nowPlaying": "📻 Streamt jetzt _{{title}}_ von [{{author}}]({{url}}) in <#{{channel}}>", "skipHint": "_Nutze `$prefixskip`, um das Radio zu stoppen, oder `$prefixradio list`, um Sender zu wechseln._", "prevNext": "⬅️ Zurück ➡️ Weiter ❌ Abbrechen", - "stationsAuthor": "24/7 Radiosender-Verzeichnis" + "stationsAuthor": "24/7 Radiosender-Verzeichnis", + "liveRadioAuthor": "📻 24/7 Live-Radio", + "webRadioFooter": "{{prefix}}radio list • 24/7 Web-Radio" }, "reload": { "indexNoReload": "❌ `index.mjs` kann nicht neu geladen werden — führe einen vollständigen Neustart durch.", @@ -597,7 +615,9 @@ "availableTargetsTitle": "🔄 Neu laden — Verfügbare Ziele", "runHint": "Führe `$prefixreload ` aus oder nutze ein Stichwort:", "batchKeywords": "`all` · `commands`", - "resultsHeader": "✅ **{{ok}}** neu geladen · ❌ **{{bad}}** fehlgeschlagen" + "resultsHeader": "✅ **{{ok}}** neu geladen · ❌ **{{bad}}** fehlgeschlagen", + "author": "🔄 Modul-Hot-Reload", + "footer": "Besitzer-Diagnose • Dynamischer Modullader" }, "remove": { "indexOutOfBounds": "Index außerhalb des Bereichs", @@ -830,7 +850,10 @@ "notInServer": "❌ Muss in einem Server verwendet werden.", "noOneInVoice": "Niemand ist im Sprachkanal.", "title": "🎙️ Sprachkanal-Mitglieder", - "channelEntry": "🔊 **{{name}}**: {{count}} Mitglieder" + "channelEntry": "🔊 **{{name}}**: {{count}} Mitglieder", + "author": "📊 Sprachkanal-Diagnose", + "footerZero": "Sprachstatus-Telemetrie • 0 aktive Kanäle", + "footerCount": "Aktive Kanäle gesamt: {{count}} • Sprach-Telemetrie" }, "thumbnail": { "nothingPlaying": "Es wird gerade nichts abgespielt.", @@ -1224,7 +1247,8 @@ "speedTitle": "Wiedergabegeschwindigkeit Angepasst", "speedMultiplier": "{{speed}}× Multiplikator", "resetHint": "Jederzeit zurücksetzen mit {{prefix}}speed", - "applied": "{{emoji}} Wiedergabegeschwindigkeit auf **{{speed}}×** eingestellt." + "applied": "{{emoji}} Wiedergabegeschwindigkeit auf **{{speed}}×** eingestellt.", + "normalRate": "1.0× Normal" }, "pitch": { "reset": "🎵 Tonhöhe auf normale **1.0×** zurückgesetzt.", @@ -1233,7 +1257,8 @@ "failed": "❌ Tonhöhe konnte nicht geändert werden: {{reason}}", "pitchTitle": "Tonhöhe Angepasst", "pitchMultiplier": "{{pitch}}× Tonhöhenverschiebung", - "resetHint": "Jederzeit zurücksetzen mit {{prefix}}pitch" + "resetHint": "Jederzeit zurücksetzen mit {{prefix}}pitch", + "normalRate": "1.0× Normal" }, "move": { "reorderedAuthor": "🔀 Titel neu angeordnet", @@ -1263,6 +1288,35 @@ "author": "Warteschlangen-Navigation • Titel überspringen", "title": "{{count}} Titel übersprungen — Zu #{{position}} gesprungen", "footer": "Remix Music • Noch {{remaining}} Titel in der Warteschlange" + }, + "logtest": { + "author": "🛠️ Fehlerkanal-Telemetrie", + "disabledTitle": "Fehlerprotokoll-Kanal deaktiviert", + "queuedTitle": "Testereignis gesendet", + "footerConfig": "Besitzer-Diagnose • config.errorLogChannel", + "footerPipeline": "Besitzer-Diagnose • logger.error-Pipeline" + }, + "errorChannel": { + "author": "🛠️ Fehlerkanal-Telemetrie", + "connectedTitle": "Protokollkanal verbunden", + "connectedDesc": "Die Echtzeit-Diagnose und Absturzweiterleitung ist jetzt für diesen Kanal aktiv.\n\n🔴 **Fehler:** Datenbank-, Player-, Audioknoten- und Gateway-Ausnahmen\n🟡 **Warnungen:** Ratenbegrenzungen, behebbare Neuverbindungen und Warnungen\n🚨 **Absturzberichte:** Schwerwiegende Prozessausnahmen mit Speicher- und Betriebszeit-Statistiken", + "connectedFooter": "Remix Watchdog • Überprüfe die Zustellung jederzeit mit $prefixlogtest", + "crashFatalAuthor": "🚨 Schwerwiegender Prozessabsturz", + "crashAlertAuthor": "⚠️ Prozesswarnung", + "crashFatalTitle": "🚨 Schwerwiegender Absturz: {{title}}", + "crashAlertTitle": "⚠️ Prozesswarnung: {{title}}", + "uptimeField": "⏱️ Betriebszeit", + "memoryField": "💾 Speicher (RSS)", + "crashFooter": "Prozessfehler-Telemetrie • Unbehandelte Ausnahme", + "forwardErrorAuthor": "🔴 Systemfehler", + "forwardWarnAuthor": "🟡 Systemwarnung", + "forwardInfoAuthor": "ℹ️ Systeminfo", + "forwardNoDetails": "*Keine weiteren Details angegeben.*", + "forwardFooter": "Logger-Telemetrie • Automatische Weiterleitung", + "floodAuthor": "📦 Protokoll-Flutschutz", + "floodTitle": "Protokollnachrichten verworfen", + "floodDesc": "⚠️ **{{count}}** zusätzliche Protokollnachricht(en) wurden während einer Flut verworfen, um API-Ratenbegrenzungen zu schützen.", + "floodFooter": "Ratenbegrenzungsschutz • ErrorChannel" } } } diff --git a/storage/locales/bot/en.json b/storage/locales/bot/en.json index d7a5769..50c1e17 100644 --- a/storage/locales/bot/en.json +++ b/storage/locales/bot/en.json @@ -269,7 +269,14 @@ "voiceTitle": "🔧 Voice Debug", "summary": "📊 **Summary**", "pageLabel": "Page {{page}}/{{total}}", - "navigateHint": "Use ⬅️➡️ to navigate" + "navigateHint": "Use ⬅️➡️ to navigate", + "author": "🛠️ Diagnostic Telemetry", + "rejoinAuthor": "🛠️ Voice Rejoin Controller", + "voiceAuthor": "🛠️ Voice Diagnostics", + "unknownTitle": "Debug — Unknown Target", + "rejoinFooter": "Owner Diagnostics • Batch Rejoin", + "telemetryFooter": "Voice State Telemetry • 1 Page", + "footerHelp": "Owner Diagnostics • %debug " }, "eval": { "resultTitle": "Eval Result", @@ -280,7 +287,8 @@ "pageLabel": "Page {{page}}/{{total}}", "navigateHint": "• ⬅️ ➡️ Navigate • ❌ Delete", "deleteHint": "• ❌ Delete", - "controlsExpired": "⌛ Controls expired" + "controlsExpired": "⌛ Controls expired", + "author": "💻 JavaScript Evaluator" }, "filter": { "pickerTitle": "🎛️ Audio Filter Picker", @@ -319,7 +327,9 @@ }, "invite": { "title": "Invite Remix", - "description": "Add Remix to your server directly from [FluxerList]().\n\nJoin our community at [fluxer.gg/remix](https://fluxer.gg/remix) for support, updates, and direct feedback." + "description": "Add Remix to your server directly from [FluxerList]().\n\nJoin our community at [fluxer.gg/remix](https://fluxer.gg/remix) for support, updates, and direct feedback.", + "addRemixTitle": "Add Remix to Your Server", + "footer": "Remix • Free & Open-Source Music" }, "join": { "channelNotFound": "Couldn't find the channel `{{channel}}`\nUse the help command to learn more about this. (`$prefixhelp join`)", @@ -641,7 +651,8 @@ "queueLoop": "Queue loop: **{{state}}**", "songLoop": "Song loop: **{{state}}**", "streaming": "📻 Streaming **[{{title}}]({{url}})**", - "playingBy": "Playing **[{{title}}]({{url}})** by [{{artist}}]({{artistUrl}})" + "playingBy": "Playing **[{{title}}]({{url}})** by [{{artist}}]({{artistUrl}})", + "nowPlayingAuthor": "🎵 Now Playing" }, "pause": { "nothingPlaying": "❌ There's nothing playing at the moment!", @@ -739,7 +750,12 @@ "serverMutedDesc": "The bot was muted by a server administrator. Playback is paused to preserve track position.", "serverUnmutedAuthor": "🔊 Bot Unmuted", "serverUnmutedTitle": "Playback Resumed", - "serverUnmutedDesc": "The bot was unmuted — automatically resuming playback." + "serverUnmutedDesc": "The bot was unmuted — automatically resuming playback.", + "streamPipelineAuthor": "🔎 Audio Stream Pipeline", + "loadingDirectStream": "🔎 Loading direct stream...", + "resolvingLavalinkStream": "🔎 Resolving stream via Lavalink...", + "lastfmPlaybackAuthor": "🎵 Last.fm Playback", + "lastfmSearchAuthor": "🔎 Last.fm Search" }, "playnext": { "searching": "🔍 Searching...", @@ -799,7 +815,9 @@ "nowPlaying": "📻 Now streaming _{{title}}_ by [{{author}}]({{url}}) in <#{{channel}}>", "skipHint": "_Use `$prefixskip` to stop the radio, or `$prefixradio list` to switch stations._", "prevNext": "⬅️ Previous ➡️ Next ❌ Cancel", - "stationsAuthor": "24/7 Radio Station Directory" + "stationsAuthor": "24/7 Radio Station Directory", + "liveRadioAuthor": "📻 24/7 Live Radio", + "webRadioFooter": "{{prefix}}radio list • 24/7 Web Radio" }, "reload": { "indexNoReload": "❌ `index.mjs` cannot be hot-reloaded — do a full restart.", @@ -812,7 +830,9 @@ "availableTargetsTitle": "🔄 Reload — Available Targets", "runHint": "Run `$prefixreload ` or use a batch keyword:", "batchKeywords": "`all` · `commands`", - "resultsHeader": "✅ **{{ok}}** reloaded · ❌ **{{bad}}** failed" + "resultsHeader": "✅ **{{ok}}** reloaded · ❌ **{{bad}}** failed", + "author": "🔄 Module Hot Reload", + "footer": "Owner Diagnostics • Dynamic Module Loader" }, "remove": { "indexOutOfBounds": "Index out of bounds", @@ -1045,7 +1065,10 @@ "notInServer": "❌ Must be used in a server.", "noOneInVoice": "No one is in voice.", "title": "🎙️ Voice Channel Members", - "channelEntry": "🔊 **{{name}}**: {{count}} members" + "channelEntry": "🔊 **{{name}}**: {{count}} members", + "author": "📊 Voice Channel Diagnostics", + "footerZero": "Voice State Telemetry • 0 active channels", + "footerCount": "Total Active Channels: {{count}} • Voice Telemetry" }, "thumbnail": { "nothingPlaying": "There's nothing playing at the moment.", @@ -1224,7 +1247,8 @@ "speedTitle": "Playback Speed Adjusted", "speedMultiplier": "{{speed}}× Multiplier", "resetHint": "Reset anytime with {{prefix}}speed", - "applied": "{{emoji}} Playback speed set to **{{speed}}×**." + "applied": "{{emoji}} Playback speed set to **{{speed}}×**.", + "normalRate": "1.0× Normal" }, "pitch": { "reset": "🎵 Audio pitch reset to normal **1.0×**.", @@ -1233,7 +1257,8 @@ "failed": "❌ Failed to adjust pitch: {{reason}}", "pitchTitle": "Audio Pitch Adjusted", "pitchMultiplier": "{{pitch}}× Pitch Shift", - "resetHint": "Reset anytime with {{prefix}}pitch" + "resetHint": "Reset anytime with {{prefix}}pitch", + "normalRate": "1.0× Normal" }, "move": { "reorderedAuthor": "🔀 Track Reordered", @@ -1263,6 +1288,35 @@ "author": "Queue Navigation • Jump Track", "title": "Skipped {{count}} track(s) — Jumped to #{{position}}", "footer": "Remix Music • {{remaining}} track(s) remaining in queue" + }, + "logtest": { + "author": "🛠️ Error Channel Telemetry", + "disabledTitle": "Error-Log Channel Disabled", + "queuedTitle": "Test Event Dispatched", + "footerConfig": "Owner Diagnostics • config.errorLogChannel", + "footerPipeline": "Owner Diagnostics • logger.error pipeline" + }, + "errorChannel": { + "author": "🛠️ Error Channel Telemetry", + "connectedTitle": "Log Channel Connected", + "connectedDesc": "Real-time diagnostic and crash forwarding is now active for this channel.\n\n🔴 **Errors:** Database, player, audio node, and gateway exceptions\n🟡 **Warnings:** Rate-limits, recoverable reconnections, and warnings\n🚨 **Crash Reports:** Fatal process exceptions with memory and uptime stats", + "connectedFooter": "Remix Watchdog • Verify delivery anytime with $prefixlogtest", + "crashFatalAuthor": "🚨 Fatal Process Crash", + "crashAlertAuthor": "⚠️ Process Alert", + "crashFatalTitle": "🚨 Fatal Crash: {{title}}", + "crashAlertTitle": "⚠️ Process Alert: {{title}}", + "uptimeField": "⏱️ Uptime", + "memoryField": "💾 Memory (RSS)", + "crashFooter": "Process Error Telemetry • Unhandled Exception", + "forwardErrorAuthor": "🔴 System Error", + "forwardWarnAuthor": "🟡 System Warning", + "forwardInfoAuthor": "ℹ️ System Info", + "forwardNoDetails": "*No additional details provided.*", + "forwardFooter": "Logger Telemetry • Automatic Forwarding", + "floodAuthor": "📦 Log Flood Gate", + "floodTitle": "Log Messages Dropped", + "floodDesc": "⚠️ **{{count}}** additional log message(s) were dropped during a flood to protect API rate limits.", + "floodFooter": "Rate Limit Guard • ErrorChannel" } } } diff --git a/storage/locales/bot/pt-BR.json b/storage/locales/bot/pt-BR.json index ae0091e..9bfa43f 100644 --- a/storage/locales/bot/pt-BR.json +++ b/storage/locales/bot/pt-BR.json @@ -269,7 +269,14 @@ "voiceTitle": "🔧 Debug de Voz", "summary": "📊 **Resumo**", "pageLabel": "Página {{page}}/{{total}}", - "navigateHint": "Use ⬅️➡️ para navegar" + "navigateHint": "Use ⬅️➡️ para navegar", + "author": "🛠️ Telemetria de Diagnóstico", + "rejoinAuthor": "🛠️ Controlador de Reconexão de Voz", + "voiceAuthor": "🛠️ Diagnóstico de Voz", + "unknownTitle": "Debug — Alvo Desconhecido", + "rejoinFooter": "Diagnóstico do Proprietário • Reconexão em Lote", + "telemetryFooter": "Telemetria de Estado de Voz • 1 Página", + "footerHelp": "Diagnóstico do Proprietário • %debug " }, "eval": { "resultTitle": "Resultado da Avaliação", @@ -280,7 +287,8 @@ "pageLabel": "Página {{page}}/{{total}}", "navigateHint": "• ⬅️ ➡️ Navegar • ❌ Excluir", "deleteHint": "• ❌ Excluir", - "controlsExpired": "⌛ Controles expirados" + "controlsExpired": "⌛ Controles expirados", + "author": "💻 Avaliador JavaScript" }, "filter": { "pickerTitle": "🎛️ Seletor de Filtros de Áudio", @@ -316,7 +324,9 @@ }, "invite": { "title": "Convide o Remix", - "description": "Adicione o Remix ao seu servidor diretamente pelo [FluxerList]().\n\nJunte-se à nossa comunidade em [fluxer.gg/remix](https://fluxer.gg/remix) para suporte, atualizações e feedback direto." + "description": "Adicione o Remix ao seu servidor diretamente pelo [FluxerList]().\n\nJunte-se à nossa comunidade em [fluxer.gg/remix](https://fluxer.gg/remix) para suporte, atualizações e feedback direto.", + "addRemixTitle": "Adicione o Remix ao seu Servidor", + "footer": "Remix • Música Gratuita e de Código Aberto" }, "join": { "channelNotFound": "Não foi possível encontrar o canal `{{channel}}`\nUse o comando de ajuda para saber mais. (`$prefixhelp join`)", @@ -426,7 +436,8 @@ "queueLoop": "Loop da fila: **{{state}}**", "songLoop": "Loop de música: **{{state}}**", "streaming": "📻 Transmitindo **[{{title}}]({{url}})**", - "playingBy": "Tocando **[{{title}}]({{url}})** por [{{artist}}]({{artistUrl}})" + "playingBy": "Tocando **[{{title}}]({{url}})** por [{{artist}}]({{artistUrl}})", + "nowPlayingAuthor": "🎵 Tocando Agora" }, "pause": { "nothingPlaying": "❌ Não está tocando nada no momento!", @@ -524,7 +535,12 @@ "serverMutedDesc": "O bot foi mutado por um administrador do servidor. A reprodução foi pausada para preservar a posição.", "serverUnmutedAuthor": "🔊 Bot Desmutado", "serverUnmutedTitle": "Reprodução Retomada", - "serverUnmutedDesc": "O bot foi desmutado — retomando a reprodução automaticamente." + "serverUnmutedDesc": "O bot foi desmutado — retomando a reprodução automaticamente.", + "streamPipelineAuthor": "🔎 Pipeline de Fluxo de Áudio", + "loadingDirectStream": "🔎 Carregando transmissão direta...", + "resolvingLavalinkStream": "🔎 Resolvendo fluxo via Lavalink...", + "lastfmPlaybackAuthor": "🎵 Reprodução do Last.fm", + "lastfmSearchAuthor": "🔎 Pesquisa no Last.fm" }, "playnext": { "searching": "🔍 Buscando...", @@ -584,7 +600,9 @@ "nowPlaying": "📻 Transmitindo agora _{{title}}_ por [{{author}}]({{url}}) em <#{{channel}}>", "skipHint": "_Use `$prefixskip` para parar o rádio ou `$prefixradio list` para trocar de estação._", "prevNext": "⬅️ Anterior ➡️ Próximo ❌ Cancelar", - "stationsAuthor": "Diretório de Rádios 24/7" + "stationsAuthor": "Diretório de Rádios 24/7", + "liveRadioAuthor": "📻 Rádio ao Vivo 24/7", + "webRadioFooter": "{{prefix}}radio list • Web Rádio 24/7" }, "reload": { "indexNoReload": "❌ `index.mjs` não pode ser recarregado — faça uma reinicialização completa.", @@ -597,7 +615,9 @@ "availableTargetsTitle": "🔄 Recarregar — Alvos Disponíveis", "runHint": "Execute `$prefixreload ` ou use uma palavra-chave em lote:", "batchKeywords": "`all` · `commands`", - "resultsHeader": "✅ **{{ok}}** recarregados · ❌ **{{bad}}** falharam" + "resultsHeader": "✅ **{{ok}}** recarregados · ❌ **{{bad}}** falharam", + "author": "🔄 Recarga Rápida de Módulos", + "footer": "Diagnóstico do Proprietário • Carregador Dinâmico de Módulos" }, "remove": { "indexOutOfBounds": "Índice fora do intervalo", @@ -830,7 +850,10 @@ "notInServer": "❌ Deve ser usado em um servidor.", "noOneInVoice": "Ninguém está no canal de voz.", "title": "🎙️ Membros do Canal de Voz", - "channelEntry": "🔊 **{{name}}**: {{count}} membros" + "channelEntry": "🔊 **{{name}}**: {{count}} membros", + "author": "📊 Diagnóstico de Canal de Voz", + "footerZero": "Telemetria de Estado de Voz • 0 canais ativos", + "footerCount": "Total de Canais Ativos: {{count}} • Telemetria de Voz" }, "thumbnail": { "nothingPlaying": "Não está tocando nada no momento.", @@ -1224,7 +1247,8 @@ "speedTitle": "Velocidade de Reprodução Ajustada", "speedMultiplier": "Multiplicador de {{speed}}×", "resetHint": "Redefina a qualquer momento com {{prefix}}speed", - "applied": "{{emoji}} Velocidade de reprodução definida para **{{speed}}×**." + "applied": "{{emoji}} Velocidade de reprodução definida para **{{speed}}×**.", + "normalRate": "1.0× Normal" }, "pitch": { "reset": "🎵 Tom de áudio redefinido para **1.0×** normal.", @@ -1233,7 +1257,8 @@ "failed": "❌ Falha ao ajustar tom: {{reason}}", "pitchTitle": "Tom de Áudio Ajustado", "pitchMultiplier": "Mudança de Tom de {{pitch}}×", - "resetHint": "Redefina a qualquer momento com {{prefix}}pitch" + "resetHint": "Redefina a qualquer momento com {{prefix}}pitch", + "normalRate": "1.0× Normal" }, "move": { "reorderedAuthor": "🔀 Faixa Reordenada", @@ -1263,6 +1288,35 @@ "author": "Navegação na Fila • Pular Faixa", "title": "{{count}} faixa(s) pulada(s) — Pulou para #{{position}}", "footer": "Remix Music • Restam {{remaining}} faixa(s) na fila" + }, + "logtest": { + "author": "🛠️ Telemetria do Canal de Erros", + "disabledTitle": "Canal de Log de Erros Desativado", + "queuedTitle": "Evento de Teste Disparado", + "footerConfig": "Diagnóstico do Proprietário • config.errorLogChannel", + "footerPipeline": "Diagnóstico do Proprietário • pipeline logger.error" + }, + "errorChannel": { + "author": "🛠️ Telemetria do Canal de Erros", + "connectedTitle": "Canal de Registros Conectado", + "connectedDesc": "O encaminhamento de diagnósticos e relatórios de falhas em tempo real está ativo para este canal.\n\n🔴 **Erros:** Exceções de banco de dados, reprodutor, nós de áudio e gateway\n🟡 **Avisos:** Limites de taxa, reconexões recuperáveis e alertas\n🚨 **Relatórios de Falhas:** Exceções fatais de processo com estatísticas de memória e tempo de atividade", + "connectedFooter": "Remix Watchdog • Verifique a entrega a qualquer momento com $prefixlogtest", + "crashFatalAuthor": "🚨 Falha Fatal de Processo", + "crashAlertAuthor": "⚠️ Alerta de Processo", + "crashFatalTitle": "🚨 Falha Fatal: {{title}}", + "crashAlertTitle": "⚠️ Alerta de Processo: {{title}}", + "uptimeField": "⏱️ Tempo de Atividade", + "memoryField": "💾 Memória (RSS)", + "crashFooter": "Telemetria de Erros de Processo • Exceção Não Tratada", + "forwardErrorAuthor": "🔴 Erro do Sistema", + "forwardWarnAuthor": "🟡 Aviso do Sistema", + "forwardInfoAuthor": "ℹ️ Informação do Sistema", + "forwardNoDetails": "*Nenhum detalhe adicional fornecido.*", + "forwardFooter": "Telemetria de Registros • Encaminhamento Automático", + "floodAuthor": "📦 Controle de Inundação de Registros", + "floodTitle": "Mensagens de Registro Descartadas", + "floodDesc": "⚠️ **{{count}}** mensagem(ns) de registro adicionais foram descartadas durante uma inundação para proteger os limites de taxa da API.", + "floodFooter": "Proteção de Limite de Taxa • ErrorChannel" } } } diff --git a/storage/locales/bot/tr.json b/storage/locales/bot/tr.json index cdb4ff1..da5767e 100644 --- a/storage/locales/bot/tr.json +++ b/storage/locales/bot/tr.json @@ -269,7 +269,14 @@ "voiceTitle": "🔧 Ses Hata Ayıklama", "summary": "📊 **Özet**", "pageLabel": "Sayfa {{page}}/{{total}}", - "navigateHint": "Gezinmek için ⬅️➡️ kullanın" + "navigateHint": "Gezinmek için ⬅️➡️ kullanın", + "author": "🛠️ Teşhis Telemetrisi", + "rejoinAuthor": "🛠️ Sese Yeniden Katılma Denetleyicisi", + "voiceAuthor": "🛠️ Ses Teşhisi", + "unknownTitle": "Hata Ayıklama — Bilinmeyen Hedef", + "rejoinFooter": "Sahip Teşhisi • Toplu Yeniden Katılma", + "telemetryFooter": "Ses Durumu Telemetrisi • 1 Sayfa", + "footerHelp": "Sahip Teşhisi • %debug " }, "eval": { "resultTitle": "Değerlendirme Sonucu", @@ -280,7 +287,8 @@ "pageLabel": "Sayfa {{page}}/{{total}}", "navigateHint": "• ⬅️ ➡️ Gezin • ❌ Sil", "deleteHint": "• ❌ Sil", - "controlsExpired": "⌛ Kontrollerin süresi doldu" + "controlsExpired": "⌛ Kontrollerin süresi doldu", + "author": "💻 JavaScript Değerlendirici" }, "filter": { "pickerTitle": "🎛️ Ses Filtresi Seçici", @@ -316,7 +324,9 @@ }, "invite": { "title": "Remix'i Davet Et", - "description": "Remix'i doğrudan [FluxerList]() üzerinden sunucunuza ekleyin.\n\nDestek, güncellemeler ve doğrudan geri bildirim için [fluxer.gg/remix](https://fluxer.gg/remix) topluluğumuza katılın." + "description": "Remix'i doğrudan [FluxerList]() üzerinden sunucunuza ekleyin.\n\nDestek, güncellemeler ve doğrudan geri bildirim için [fluxer.gg/remix](https://fluxer.gg/remix) topluluğumuza katılın.", + "addRemixTitle": "Remix'i Sunucunuza Ekleyin", + "footer": "Remix • Ücretsiz ve Açık Kaynaklı Müzik" }, "join": { "channelNotFound": "`{{channel}}` kanalı bulunamadı\nBu komut hakkında daha fazla bilgi için yardım komutunu kullanın. (`$prefixhelp join`)", @@ -630,7 +640,8 @@ "queueLoop": "Kuyruk döngüsü: **{{state}}**", "songLoop": "Şarkı döngüsü: **{{state}}**", "streaming": "📻 Yayınlanıyor **[{{title}}]({{url}})**", - "playingBy": "[{{artist}}]({{artistUrl}}) tarafından **[{{title}}]({{url}})** çalınıyor" + "playingBy": "[{{artist}}]({{artistUrl}}) tarafından **[{{title}}]({{url}})** çalınıyor", + "nowPlayingAuthor": "🎵 Şu An Çalıyor" }, "pause": { "nothingPlaying": "❌ Şu anda çalan bir şey yok!", @@ -728,7 +739,12 @@ "serverMutedDesc": "Bot bir sunucu yöneticisi tarafından susturuldu. Şarkı konumunu korumak için oynatma duraklatıldı.", "serverUnmutedAuthor": "🔊 Bot Susturması Kaldırıldı", "serverUnmutedTitle": "Oynatma Sürdürülüyor", - "serverUnmutedDesc": "Botun susturması kaldırıldı — oynatma otomatik olarak devam ediyor." + "serverUnmutedDesc": "Botun susturması kaldırıldı — oynatma otomatik olarak devam ediyor.", + "streamPipelineAuthor": "🔎 Ses Akışı Hattı", + "loadingDirectStream": "🔎 Doğrudan akış yükleniyor...", + "resolvingLavalinkStream": "🔎 Lavalink üzerinden akış çözülüyor...", + "lastfmPlaybackAuthor": "🎵 Last.fm Çalma", + "lastfmSearchAuthor": "🔎 Last.fm Arama" }, "playnext": { "searching": "🔍 Aranıyor...", @@ -788,7 +804,9 @@ "nowPlaying": "📻 <#{{channel}}> kanalında [{{author}}]({{url}}) tarafından _{{title}}_ yayınlanıyor", "skipHint": "_Radyoyu durdurmak için `$prefixskip` veya istasyon değiştirmek için `$prefixradio list` kullanın._", "prevNext": "⬅️ Önceki ➡️ Sonraki ❌ İptal", - "stationsAuthor": "7/24 Radyo İstasyonu Dizini" + "stationsAuthor": "7/24 Radyo İstasyonu Dizini", + "liveRadioAuthor": "📻 7/24 Canlı Radyo", + "webRadioFooter": "{{prefix}}radio list • 7/24 Web Radyosu" }, "reload": { "indexNoReload": "❌ `index.mjs` sıcak yeniden yüklenemez — tam yeniden başlatma yapın.", @@ -801,7 +819,9 @@ "availableTargetsTitle": "🔄 Yeniden Yükle — Kullanılabilir Hedefler", "runHint": "`$prefixreload ` çalıştırın veya bir toplu anahtar kelime kullanın:", "batchKeywords": "`all` · `commands`", - "resultsHeader": "✅ **{{ok}}** yeniden yüklendi · ❌ **{{bad}}** başarısız" + "resultsHeader": "✅ **{{ok}}** yeniden yüklendi · ❌ **{{bad}}** başarısız", + "author": "🔄 Modül Dinamik Yeniden Yükleme", + "footer": "Sahip Teşhisi • Dinamik Modül Yükleyici" }, "remove": { "indexOutOfBounds": "Geçersiz sıra numarası", @@ -1034,7 +1054,10 @@ "notInServer": "❌ Bir sunucuda kullanılmalıdır.", "noOneInVoice": "Sesli kanalda kimse yok.", "title": "🎙️ Ses Kanalı Üyeleri", - "channelEntry": "🔊 **{{name}}**: {{count}} üye" + "channelEntry": "🔊 **{{name}}**: {{count}} üye", + "author": "📊 Ses Kanalı Teşhisi", + "footerZero": "Ses Durumu Telemetrisi • 0 aktif kanal", + "footerCount": "Toplam Aktif Kanal: {{count}} • Ses Telemetrisi" }, "thumbnail": { "nothingPlaying": "Şu anda çalan bir şey yok.", @@ -1172,7 +1195,8 @@ "speedTitle": "Oynatma Hızı Ayarlandı", "speedMultiplier": "{{speed}}× Çarpanı", "resetHint": "Sıfırlamak için: {{prefix}}speed", - "applied": "{{emoji}} Oynatma hızı **{{speed}}×** olarak ayarlandı." + "applied": "{{emoji}} Oynatma hızı **{{speed}}×** olarak ayarlandı.", + "normalRate": "1.0× Normal" }, "pitch": { "reset": "🎵 Ses perdesi normal **1.0×** seviyesine sıfırlandı.", @@ -1181,7 +1205,8 @@ "failed": "❌ Ses perdesi ayarlanamadı: {{reason}}", "pitchTitle": "Ses Tonu Ayarlandı", "pitchMultiplier": "{{pitch}}× Ton Kaydırma", - "resetHint": "Sıfırlamak için: {{prefix}}pitch" + "resetHint": "Sıfırlamak için: {{prefix}}pitch", + "normalRate": "1.0× Normal" }, "gateway": { "missingPermsFallback": "⚠️ Düzgün çalışmak için ihtiyacım olan izinler eksik! Eksik: **{{perms}}**. Lütfen bir sunucu yöneticisinden bu izinleri Sunucu Ayarları → Roller'den vermesini isteyin." @@ -1263,6 +1288,35 @@ "author": "Kuyruk Gezinme • Şarkıya Atla", "title": "{{count}} şarkı atlandı — #{{position}} numaralı şarkıya geçildi", "footer": "Remix Music • Kuyrukta kalan {{remaining}} şarkı" + }, + "logtest": { + "author": "🛠️ Hata Kanalı Telemetrisi", + "disabledTitle": "Hata Günlüğü Kanalı Devre Dışı", + "queuedTitle": "Test Olayı Gönderildi", + "footerConfig": "Sahip Teşhisi • config.errorLogChannel", + "footerPipeline": "Sahip Teşhisi • logger.error boru hattı" + }, + "errorChannel": { + "author": "🛠️ Hata Kanalı Telemetrisi", + "connectedTitle": "Günlük Kanalı Bağlandı", + "connectedDesc": "Gerçek zamanlı arıza teşhisi ve çökme raporlama bu kanal için aktif edildi.\n\n🔴 **Hatalar:** Veritabanı, oynatıcı, ses düğümü ve ağ geçidi istisnaları\n🟡 **Uyarılar:** Hız sınırları, kurtarılabilir yeniden bağlantılar ve uyarılar\n🚨 **Çökme Raporları:** Bellek ve çalışma süresi istatistikleriyle kritik işlem istisnaları", + "connectedFooter": "Remix Gözlemcisi • $prefixlogtest ile istediğiniz zaman teslimatı doğrulayın", + "crashFatalAuthor": "🚨 Kritik İşlem Çökmesi", + "crashAlertAuthor": "⚠️ İşlem Uyarısı", + "crashFatalTitle": "🚨 Kritik Çökme: {{title}}", + "crashAlertTitle": "⚠️ İşlem Uyarısı: {{title}}", + "uptimeField": "⏱️ Çalışma Süresi", + "memoryField": "💾 Bellek (RSS)", + "crashFooter": "İşlem Hata Telemetrisi • Yakalanmamış İstisna", + "forwardErrorAuthor": "🔴 Sistem Hatası", + "forwardWarnAuthor": "🟡 Sistem Uyarısı", + "forwardInfoAuthor": "ℹ️ Sistem Bilgisi", + "forwardNoDetails": "*Ek bir ayrıntı verilmedi.*", + "forwardFooter": "Günlük Telemetrisi • Otomatik Yönlendirme", + "floodAuthor": "📦 Günlük Taşkın Kapısı", + "floodTitle": "Günlük Mesajları Düşürüldü", + "floodDesc": "⚠️ API hız limitlerini korumak için taşkın sırasında fazladan **{{count}}** günlük mesajı düşürüldü.", + "floodFooter": "Hız Limiti Koruması • ErrorChannel" } } }