From 4c3c04bd7d6eda0eccec27e9141f6a6a4e6c96ca Mon Sep 17 00:00:00 2001 From: NoLogicAlan Date: Sun, 25 Oct 2026 03:28:27 +0300 Subject: [PATCH] feat(ui): upgrade audio DSP, seek, thumbnail, and voice session embeds - Modernize %seek with track artwork thumbnail and visual progress bar - Enhance %filter with real-time DSP active status badges and card spacing - Add detailed frequency band indicators to %bassboost, %speed, and %pitch - Redesign %thumbnail with framed artwork and song metadata - Transform %leave into a structured voice session termination card - Polish %ping with categorized latency health metrics (REST, Gateway, Audio Node) - Leave %stats untouched as intended - Complete translations across all 6 locales (en, ar-SA, ckb, tr, de-DE, pt-BR) --- commands/bassboost.mjs | 41 +++++++++++++++++++++++---- commands/filter.mjs | 23 +++++++++------ commands/leave.mjs | 19 +++++++++++-- commands/ping.mjs | 30 +++++++++++--------- commands/pitch.mjs | 41 +++++++++++++++++++-------- commands/seek.mjs | 43 +++++++++++++++++++++------- commands/speed.mjs | 36 +++++++++++++++++------- commands/thumbnail.mjs | 36 ++++++++++++++++++++---- storage/locales/bot/ar-SA.json | 51 ++++++++++++++++++++++++++++------ storage/locales/bot/ckb.json | 51 ++++++++++++++++++++++++++++------ storage/locales/bot/de-DE.json | 51 ++++++++++++++++++++++++++++------ storage/locales/bot/en.json | 51 ++++++++++++++++++++++++++++------ storage/locales/bot/pt-BR.json | 51 ++++++++++++++++++++++++++++------ storage/locales/bot/tr.json | 51 ++++++++++++++++++++++++++++------ 14 files changed, 456 insertions(+), 119 deletions(-) diff --git a/commands/bassboost.mjs b/commands/bassboost.mjs index 9550256..4b3466d 100644 --- a/commands/bassboost.mjs +++ b/commands/bassboost.mjs @@ -5,7 +5,7 @@ import { CommandBuilder } from "../src/commands/index.mjs"; import { EmbedBuilder } from "@fluxerjs/core"; -import { getGlobalColor } from "../src/ui/index.mjs"; +import { Utils } from "../src/utils/Utils.mjs"; export const BASSBOOST_PRESETS = { low: { @@ -59,7 +59,7 @@ export const command = new CommandBuilder() o.setName("level") .setDescription("Bass boost level: 'low', 'medium', 'hard', or 'off'.", "options.bassboost.level") .addChoices("low", "medium", "hard", "off") - .setRequired(false) + .setDefault("medium") ) .addAliases("bb", "bass"); @@ -74,13 +74,18 @@ export async function run(message, data) { const p = await this.getPlayer(message, false, false, false); if (!p) return; + const current = p.queue?.getCurrent(); const levelArg = data.get("level")?.value?.toLowerCase() || "medium"; + const prefix = this.handler.getPrefix(message.message?.guildId ?? message.channel?.guildId) || "%"; - const embed = new EmbedBuilder().setColor(getGlobalColor()); + const embed = new EmbedBuilder().setColor(0xe9196c); if (levelArg === "off" || levelArg === "none" || levelArg === "reset") { await p.applyFilter({}, null); - embed.setDescription(this.t(message, "responses.bassboost.disabled")); + embed.setAuthor({ name: `🔊 ${this.t(message, "responses.bassboost.eqTitle")}` }) + .setTitle("⏹️ Bass Boost Off") + .setDescription(this.t(message, "responses.bassboost.disabled")) + .setFooter({ text: `${prefix}bassboost ` }); return message.reply({ embeds: [embed] }).catch(() => {}); } @@ -97,6 +102,32 @@ export async function run(message, data) { return message.reply({ embeds: [embed] }).catch(() => {}); } - embed.setDescription(this.t(message, "responses.bassboost.applied", { level: preset.label })); + let desc = this.t(message, "responses.bassboost.applied", { level: preset.label }); + if (current?.title) { + const rawAuthor = current.artist || (typeof current.author === "object" ? current.author?.name : current.author); + const authorStr = rawAuthor ? ` • ${rawAuthor}` : ""; + desc += `\n**${Utils.truncate(current.title, 45)}**${authorStr}`; + } + + const subBassText = this.t(message, "responses.bassboost.subBass") || "Sub-Bass"; + const midBassText = this.t(message, "responses.bassboost.midBass") || "Mid-Bass"; + const highText = this.t(message, "responses.bassboost.high") || "High"; + + const gainSub = levelArg === "hard" ? "+1.10 dB" : levelArg === "low" ? "+0.25 dB" : "+0.70 dB"; + const gainMid = levelArg === "hard" ? "+0.80 dB" : levelArg === "low" ? "+0.15 dB" : "+0.50 dB"; + const gainHigh = levelArg === "hard" ? "-0.80 dB" : levelArg === "low" ? "+0.00 dB" : "-0.65 dB"; + + desc += `\n\n` + "`" + `${subBassText}: ${gainSub} │ ${midBassText}: ${gainMid} │ ${highText}: ${gainHigh}` + "`"; + + embed + .setAuthor({ name: `🔊 ${this.t(message, "responses.bassboost.eqTitle")}` }) + .setTitle(`Bass Boost: ${preset.label}`) + .setDescription(desc) + .setFooter({ text: this.t(message, "responses.bassboost.resetHint", { prefix }) }); + + if (current?.thumbnail) { + embed.setThumbnail(current.thumbnail); + } + message.reply({ embeds: [embed] }).catch(() => {}); } diff --git a/commands/filter.mjs b/commands/filter.mjs index c65c94b..a83e4a8 100644 --- a/commands/filter.mjs +++ b/commands/filter.mjs @@ -260,7 +260,7 @@ function buildPageEmbed(t, msg, page, activeKeys, current) { const lines = pageItems.map(f => { const isActive = activeSet.has(f.key); const active = isActive ? " " + t(msg, "responses.filter.activeLabel") : ""; - return `${f.emoji} **${f.label}**${active} — *${f.desc}*`; + return `${f.emoji} **${f.label}**${active}\n *${f.desc}*`; }); const navHint = totalPages > 1 @@ -273,21 +273,26 @@ function buildPageEmbed(t, msg, page, activeKeys, current) { const f = FILTERS.find(f => f.key === k); return f ? `${f.emoji} ${f.label}` : k; }); - activeSummary = `\n🔥 Active: ${activeLabels.join(" + ")}\n`; + activeSummary = `\n🟢 **${t(msg, "responses.filter.activePrefix") || "Active:"}** ${activeLabels.join(" + ")}\n`; } - return new EmbedBuilder() - .setColor(getGlobalColor()) - .setAuthor({ name: t(msg, "responses.filter.pickerTitle") }) + const embed = new EmbedBuilder() + .setColor(0xe9196c) + .setAuthor({ name: `🎛️ ${t(msg, "responses.filter.pickerTitle")}` }) .setDescription( `${trackLine}\n${activeSummary}\n` + - lines.join("\n") + + lines.join("\n\n") + navHint ) .setFooter({ - text: t(msg, "responses.filter.footer", { page: page + 1, total: totalPages }) - }) - ; + text: `${t(msg, "responses.filter.footer", { page: page + 1, total: totalPages })} • ${t(msg, "responses.filter.realtimeDsp") || "Real-time DSP"}` + }); + + if (current?.thumbnail) { + embed.setThumbnail(current.thumbnail); + } + + return embed; } /** diff --git a/commands/leave.mjs b/commands/leave.mjs index df71662..0def027 100644 --- a/commands/leave.mjs +++ b/commands/leave.mjs @@ -155,8 +155,23 @@ export async function run(msg, data) { }, rejoinDelay); } + const prefix = this.handler.getPrefix(cleanGuildId) || "%"; + const chObj = client?.channels?.get?.(activeChannelId); + const channelName = chObj?.name ? `#${chObj.name}` : `<#${activeChannelId}>`; + const label247 = was247 - ? " (rejoining in " + Math.round(rejoinDelay / 1000) + "s — 24/7 is still saved. Use `" + this.handler.getPrefix(cleanGuildId) + "247` to disable it.)" + ? "\n\n⏱️ " + "*(rejoining in " + Math.round(rejoinDelay / 1000) + "s — 24/7 is still saved. Use `" + prefix + "247` to disable it.)*" : ""; - msg.reply(this.t(msg, "responses.leave.left") + label247); + + const embed = new EmbedBuilder() + .setColor(0xe9196c) + .setAuthor({ name: `👋 ${this.t(msg, "responses.leave.sessionEndedTitle")}` }) + .setTitle(this.t(msg, "responses.leave.disconnectedBadge")) + .setDescription( + `🔊 **${this.t(msg, "responses.leave.leftChannel", { channel: channelName })}**\n` + + `🗑️ ${this.t(msg, "responses.leave.queueCleared")}` + label247 + ) + .setFooter({ text: this.t(msg, "responses.leave.rejoinHint", { prefix }) }); + + msg.reply({ embeds: [embed] }).catch(() => {}); } diff --git a/commands/ping.mjs b/commands/ping.mjs index c2fea29..91a17c1 100644 --- a/commands/ping.mjs +++ b/commands/ping.mjs @@ -5,7 +5,6 @@ import { CommandBuilder } from "../src/commands/index.mjs"; import { EmbedBuilder } from "@fluxerjs/core"; -import { getGlobalColor } from "../src/ui/index.mjs"; /** * @type {CommandBuilder} @@ -68,7 +67,7 @@ export async function run(message) { const t = (...a) => this.t(message, ...a); const waitingEmbed = new EmbedBuilder() - .setColor(getGlobalColor()) + .setColor(0xe9196c) .setDescription(t("responses.ping.measuring")); const t0 = Date.now(); @@ -76,29 +75,34 @@ export async function run(message) { try { sent = await message.reply({ embeds: [waitingEmbed] }); } catch (e) { - return; // couldn't even send the placeholder — nothing to edit + return; } const roundtrip = Date.now() - t0; - const lines = [ - `${t("responses.ping.roundtrip")} — \`${roundtrip}ms\``, - ]; - const gateway = readGatewayPing(this.client); - if (gateway >= 0) lines.push(`${t("responses.ping.gateway")} — \`${gateway}ms\``); - const node = readNodePing(this.lavalink); + + const restLabel = t("responses.ping.restApi") || "REST API"; + const gatewayLabel = t("responses.ping.gatewayWs") || "Gateway WebSocket"; + const nodeLabel = t("responses.ping.audioNode") || "Audio Node"; + + const lines = [ + `⚡ **${restLabel}** — \`${roundtrip}ms\``, + ]; + if (gateway >= 0) lines.push(`🌐 **${gatewayLabel}** — \`${gateway}ms\``); if (node) { - lines.push(`${t("responses.ping.node")} — \`${node.ping !== null ? node.ping + "ms" : "connected"}\``); + lines.push(`🎵 **${nodeLabel}** — \`${node.ping !== null ? node.ping + "ms" : "connected"}\``); } const embed = new EmbedBuilder() - .setColor(getGlobalColor()) + .setColor(0xe9196c) .setAuthor({ - name: t("responses.ping.title"), + name: `🏓 ${t("responses.ping.pingDashboard") || t("responses.ping.title")}`, iconURL: this.client?.user?.displayAvatarURL?.() || null, }) - .setDescription(lines.join("\n")); + .setTitle(`🟢 ${t("responses.ping.operational") || "Operational"}`) + .setDescription(lines.join("\n\n")) + .setFooter({ text: `Shard #${this.client?.shardId ?? 0} • NodeLink DSP` }); sent.edit({ embeds: [embed] }).catch(() => {}); } diff --git a/commands/pitch.mjs b/commands/pitch.mjs index 9bc28e4..549b588 100644 --- a/commands/pitch.mjs +++ b/commands/pitch.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 { Utils } from "../src/utils/Utils.mjs"; /** @@ -14,14 +13,14 @@ import { Utils } from "../src/utils/Utils.mjs"; */ export const command = new CommandBuilder() .setName("pitch") - .setDescription("Adjust the audio pitch of the current track (0.5× to 2.0×).", "commands.pitch") + .setDescription("Adjust the pitch of the current track (0.5× to 2.0×).", "commands.pitch") .setCategory("music") .addNumberOption(o => - o.setName("pitch") - .setDescription("Audio pitch multiplier between 0.5 and 2.0 (e.g. 1.25). Omit to reset to 1.0×.", "options.pitch.pitch") + o.setName("multiplier") + .setDescription("Pitch multiplier between 0.5 and 2.0 (e.g. 1.25). Omit to reset to 1.0×.", "options.pitch.multiplier") .setRequired(false) ) - .addAliases("semitone", "tune"); + .addAliases("key"); /** * Run handler for the pitch command. @@ -34,8 +33,10 @@ export async function run(message, data) { const p = await this.getPlayer(message, false, false, false); if (!p) return; - const rawPitch = data.get("pitch")?.value; - const embed = new EmbedBuilder().setColor(getGlobalColor()); + const current = p.queue?.getCurrent(); + const rawPitch = data.get("multiplier")?.value; + const prefix = this.handler?.getPrefix?.(message.message?.guildId ?? message.guild?.id) ?? "%"; + const embed = new EmbedBuilder().setColor(0xe9196c); if (rawPitch === null || rawPitch === undefined || isNaN(Number(rawPitch))) { const currentTimescale = p.activeFilterPayload?.timescale; @@ -44,10 +45,15 @@ export async function run(message, data) { const existingPayload = { ...(p.activeFilterPayload || {}) }; delete existingPayload.timescale; await p.applyFilter(existingPayload, Object.keys(existingPayload).length > 0 ? p.activeFilter : null); - embed.setDescription(this.t(message, "responses.pitch.reset")); + embed.setAuthor({ name: `🎵 ${this.t(message, "responses.pitch.pitchTitle")}` }) + .setTitle("1.0× Normal") + .setDescription(this.t(message, "responses.pitch.reset")) + .setFooter({ text: this.t(message, "responses.pitch.resetHint", { prefix }) }); } else { - const prefix = this.handler?.getPrefix?.(message.message?.guildId ?? message.guild?.id) ?? "%"; - embed.setDescription(this.t(message, "responses.pitch.current", { pitch: "1.0", prefix })); + embed.setAuthor({ name: `🎵 ${this.t(message, "responses.pitch.pitchTitle")}` }) + .setTitle("1.0× Normal") + .setDescription(this.t(message, "responses.pitch.current", { pitch: "1.0", prefix })) + .setFooter({ text: this.t(message, "responses.pitch.resetHint", { prefix }) }); } return message.reply({ embeds: [embed] }).catch(() => {}); } @@ -79,6 +85,19 @@ export async function run(message, data) { return message.reply({ embeds: [embed] }).catch(() => {}); } - embed.setDescription(this.t(message, "responses.pitch.set", { pitch })); + let desc = this.t(message, "responses.pitch.set", { pitch }); + if (current?.title) { + const rawAuthor = current.artist || (typeof current.author === "object" ? current.author?.name : current.author); + const authorStr = rawAuthor ? ` • ${rawAuthor}` : ""; + desc += `\n**${Utils.truncate(current.title, 45)}**${authorStr}`; + } + + embed.setAuthor({ name: `🎵 ${this.t(message, "responses.pitch.pitchTitle")}` }) + .setTitle(this.t(message, "responses.pitch.pitchMultiplier", { pitch })) + .setDescription(desc) + .setFooter({ text: this.t(message, "responses.pitch.resetHint", { prefix }) }); + + if (current?.thumbnail) embed.setThumbnail(current.thumbnail); + message.reply({ embeds: [embed] }).catch(() => {}); } diff --git a/commands/seek.mjs b/commands/seek.mjs index ccbd798..7a30a7a 100644 --- a/commands/seek.mjs +++ b/commands/seek.mjs @@ -5,9 +5,7 @@ import { CommandBuilder } from "../src/commands/index.mjs"; import { EmbedBuilder } from "@fluxerjs/core"; -import { getGlobalColor } from "../src/ui/index.mjs"; import { Utils } from "../src/utils/Utils.mjs"; -import { ERROR_COLOR } from "../src/utils/UI.mjs"; /** @type {CommandBuilder} @description Command definition for the seek command. */ export const command = new CommandBuilder() @@ -35,42 +33,67 @@ export async function run(msg, data) { if (!p) return; if (!p.queue?.getCurrent()) { - return msg.reply({ embeds: [new EmbedBuilder().setColor(ERROR_COLOR).setDescription(this.t(msg, "responses.seek.nothingPlaying"))] }); + return msg.reply({ embeds: [new EmbedBuilder().setColor(0xe9196c).setDescription(this.t(msg, "responses.seek.nothingPlaying"))] }); } if (p._paused) { - return msg.reply({ embeds: [new EmbedBuilder().setColor(ERROR_COLOR).setDescription(this.t(msg, "responses.seek.paused"))] }); + return msg.reply({ embeds: [new EmbedBuilder().setColor(0xe9196c).setDescription(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(ERROR_COLOR).setDescription(this.t(msg, "responses.seek.live"))] }); + return msg.reply({ embeds: [new EmbedBuilder().setColor(0xe9196c).setDescription(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(ERROR_COLOR).setDescription(this.t(msg, "responses.seek.invalidFormat"))] }); + return msg.reply({ embeds: [new EmbedBuilder().setColor(0xe9196c).setDescription(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(ERROR_COLOR).setDescription(this.t(msg, "responses.seek.exceedsDuration", { duration: maxStr }))] }); + return msg.reply({ embeds: [new EmbedBuilder().setColor(0xe9196c).setDescription(this.t(msg, "responses.seek.exceedsDuration", { duration: maxStr }))] }); } try { const result = await p.seekToPosition(seekMs); if (result) { const seekStr = Utils.prettifyMS(seekMs); - return msg.reply({ embeds: [new EmbedBuilder().setColor(getGlobalColor()).setDescription(this.t(msg, "responses.seek.seeked", { position: seekStr }))] }); + const totalStr = Utils.prettifyMS(trackDuration); + const trackUrl = current.spotifyUrl || current.url || null; + const rawAuthor = current.artist || (typeof current.author === "object" ? current.author?.name : current.author); + const progressBar = Utils.progressBar(seekMs, trackDuration, 18, "▬", "▬", "🔘"); + + let desc = trackUrl + ? `**[${Utils.truncate(current.title || this.t(msg, "responses.play.unknownTrack"), 50)}](${trackUrl})**` + : `**${Utils.truncate(current.title || this.t(msg, "responses.play.unknownTrack"), 50)}**`; + + if (rawAuthor) { + desc += `\n${this.t(msg, "responses.play.byAuthor", { author: rawAuthor })}`; + } + desc += `\n\n` + "`" + progressBar + "`"; + + const embed = new EmbedBuilder() + .setColor(0xe9196c) + .setAuthor({ name: `⏩ ${this.t(msg, "responses.seek.seekTitle")}` }) + .setTitle(this.t(msg, "responses.seek.seekSubtitle", { position: seekStr, duration: totalStr })) + .setDescription(desc) + .setFooter({ text: this.t(msg, "responses.seek.seeked", { position: seekStr }) }); + + if (current.thumbnail) { + embed.setThumbnail(current.thumbnail); + } + + return msg.reply({ embeds: [embed] }); } else { - return msg.reply({ embeds: [new EmbedBuilder().setColor(ERROR_COLOR).setDescription(this.t(msg, "responses.seek.notSupported"))] }); + return msg.reply({ embeds: [new EmbedBuilder().setColor(0xe9196c).setDescription(this.t(msg, "responses.seek.notSupported"))] }); } } catch (err) { - return msg.reply({ embeds: [new EmbedBuilder().setColor(ERROR_COLOR).setDescription(this.t(msg, "responses.seek.failed", { error: err.message }))] }); + return msg.reply({ embeds: [new EmbedBuilder().setColor(0xe9196c).setDescription(this.t(msg, "responses.seek.failed", { error: err.message }))] }); } } diff --git a/commands/speed.mjs b/commands/speed.mjs index 6440296..9258430 100644 --- a/commands/speed.mjs +++ b/commands/speed.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 { Utils } from "../src/utils/Utils.mjs"; /** @@ -34,29 +33,33 @@ export async function run(message, data) { const p = await this.getPlayer(message, false, false, false); if (!p) return; + const current = p.queue?.getCurrent(); const rawRate = data.get("rate")?.value; - const embed = new EmbedBuilder().setColor(getGlobalColor()); + const prefix = this.handler?.getPrefix?.(message.message?.guildId ?? message.guild?.id) ?? "%"; + const embed = new EmbedBuilder().setColor(0xe9196c); if (rawRate === null || rawRate === undefined || isNaN(Number(rawRate))) { - // Reset to 1.0 or show current speed const currentTimescale = p.activeFilterPayload?.timescale; const currentSpeed = currentTimescale?.speed ?? 1.0; if (currentSpeed !== 1.0) { - // Reset const existingPayload = { ...(p.activeFilterPayload || {}) }; delete existingPayload.timescale; await p.applyFilter(existingPayload, Object.keys(existingPayload).length > 0 ? p.activeFilter : null); - embed.setDescription(this.t(message, "responses.speed.reset")); + embed.setAuthor({ name: `⏩ ${this.t(message, "responses.speed.speedTitle")}` }) + .setTitle("1.0× Normal") + .setDescription(this.t(message, "responses.speed.reset")) + .setFooter({ text: this.t(message, "responses.speed.resetHint", { prefix }) }); } else { - const prefix = this.handler?.getPrefix?.(message.message?.guildId ?? message.guild?.id) ?? "%"; - embed.setDescription(this.t(message, "responses.speed.current", { speed: "1.0", prefix })); + embed.setAuthor({ name: `⏩ ${this.t(message, "responses.speed.speedTitle")}` }) + .setTitle("1.0× Normal") + .setDescription(this.t(message, "responses.speed.current", { speed: "1.0", prefix })) + .setFooter({ text: this.t(message, "responses.speed.resetHint", { prefix }) }); } return message.reply({ embeds: [embed] }).catch(() => {}); } const speed = Utils.clamp(Number(rawRate), 0.5, 2.0); - // Preserve other active filters if present, update only timescale speed const existingTimescale = p.activeFilterPayload?.timescale || {}; const newTimescale = { ...existingTimescale, @@ -73,7 +76,7 @@ export async function run(message, data) { const filterMeta = { key: `speed_${speed}`, label: `${speed}× Speed`, - emoji: speed > 1 ? "⏩" : "🐢", + emoji: speed > 1 ? "⚡" : "🐢", }; const res = await p.applyFilter(payload, filterMeta); @@ -82,6 +85,19 @@ export async function run(message, data) { return message.reply({ embeds: [embed] }).catch(() => {}); } - embed.setDescription(this.t(message, "responses.speed.set", { emoji: speed > 1 ? "⏩" : "🐢", speed })); + let desc = this.t(message, "responses.speed.applied", { speed }); + if (current?.title) { + const rawAuthor = current.artist || (typeof current.author === "object" ? current.author?.name : current.author); + const authorStr = rawAuthor ? ` • ${rawAuthor}` : ""; + desc += `\n**${Utils.truncate(current.title, 45)}**${authorStr}`; + } + + embed.setAuthor({ name: `⏩ ${this.t(message, "responses.speed.speedTitle")}` }) + .setTitle(this.t(message, "responses.speed.speedMultiplier", { speed })) + .setDescription(desc) + .setFooter({ text: this.t(message, "responses.speed.resetHint", { prefix }) }); + + if (current?.thumbnail) embed.setThumbnail(current.thumbnail); + message.reply({ embeds: [embed] }).catch(() => {}); } diff --git a/commands/thumbnail.mjs b/commands/thumbnail.mjs index 8da5f52..0536c78 100644 --- a/commands/thumbnail.mjs +++ b/commands/thumbnail.mjs @@ -5,7 +5,7 @@ import { CommandBuilder } from "../src/commands/index.mjs"; import { EmbedBuilder } from "@fluxerjs/core"; -import { getGlobalColor } from "../src/ui/index.mjs"; +import { Utils } from "../src/utils/Utils.mjs"; /** @type {CommandBuilder} @description Command definition for the thumbnail command. */ export const command = new CommandBuilder() @@ -24,12 +24,38 @@ export const command = new CommandBuilder() export async function run(msg) { const p = await this.getPlayer(msg); if (!p) return; - const data = await p.getThumbnail(); + + const current = p.queue?.getCurrent(); + if (!current) { + const embed = new EmbedBuilder() + .setColor(0xe9196c) + .setDescription(this.t(msg, "responses._common.nothingPlaying")); + return msg.reply({ embeds: [embed] }).catch(() => {}); + } + + if (!current.thumbnail) { + const embed = new EmbedBuilder() + .setColor(0xe9196c) + .setDescription(this.t(msg, "responses.thumbnail.noArtwork")); + return msg.reply({ embeds: [embed] }).catch(() => {}); + } + + const trackUrl = current.spotifyUrl || current.url || null; + const rawAuthor = current.artist || (typeof current.author === "object" ? current.author?.name : current.author); + const titleDisplay = Utils.truncate(current.title || this.t(msg, "responses.play.unknownTrack"), 50); + + let desc = trackUrl ? `**[${titleDisplay}](${trackUrl})**` : `**${titleDisplay}**`; + if (rawAuthor) { + desc += `\n${this.t(msg, "responses.play.byAuthor", { author: rawAuthor })}`; + } const embed = new EmbedBuilder() - .setColor(getGlobalColor()) - .setDescription(data.msg); - if (data.image) embed.setImage(data.image); + .setColor(0xe9196c) + .setAuthor({ name: `🖼️ ${this.t(msg, "responses.thumbnail.thumbTitle")}` }) + .setTitle(this.t(msg, "responses.thumbnail.highRes")) + .setDescription(desc) + .setImage(current.thumbnail) + .setFooter({ text: this.t(msg, "responses.thumbnail.expandHint") }); msg.reply({ embeds: [embed] }).catch(() => {}); } diff --git a/storage/locales/bot/ar-SA.json b/storage/locales/bot/ar-SA.json index 9a3d91e..36160cb 100644 --- a/storage/locales/bot/ar-SA.json +++ b/storage/locales/bot/ar-SA.json @@ -284,7 +284,10 @@ "pickerClosed": "👋 تم إغلاق أداة اختيار الفلاتر.", "footer": "صفحة {{page}}/{{total}} • تفاعل مع رمز تعبيري للفلتر للتبديل", "activeLabel": "**← نشط**", - "closeHint": "❌ إغلاق" + "closeHint": "❌ إغلاق", + "activePrefix": "مفعّل:", + "realtimeDsp": "معالجة صوتية فورية", + "navHint": "تفاعل بالإيموجي للتبديل • ❌ للإغلاق" }, "forceleave": { "channelNotFound": "❌ القناة غير موجودة.", @@ -308,7 +311,10 @@ "autoLeaveInactive": "غادرت القناة <#{{channel}}> بسبب عدم النشاط.", "autoLeaveInactive247": "غادرت القناة <#{{channel}}> بسبب عدم النشاط.\nإذا كنت تريدني أن أبقى في الصوت، استخدم `{{prefix}}247 on/auto`\nاستخدم `{{prefix}}247` لعرض جميع القنوات المحفوظة وإدارتها.", "joinFailedPerms": "❌ ليس لدي إذن للانضمام إلى <#{{channel}}>. يرجى التأكد من أن لدي إذن **الاتصال**.", - "voiceChannelUnknown": "قناة صوتية غير معروفة" + "voiceChannelUnknown": "قناة صوتية غير معروفة", + "sessionStartedTitle": "تم الاتصال بالجلسة الصوتية", + "joinedChannel": "متصل بـ {{channel}}", + "connectedBadge": "متصل" }, "leave": { "noVoiceChannel": "⚠️ يرجى الانضمام إلى قناة صوتية أولاً، أو حدد واحدة: `{{prefix}}leave <#channel>`", @@ -321,7 +327,12 @@ "left": "✅ تم المغادرة بنجاح", "leftRejoin247": "✅ تم المغادرة بنجاح — سأعيد الانضمام إلى <#{{channel}}> خلال بضع ثوانٍ.\nلتعطيل وضع 24/7 بشكل دائم، استخدم `{{prefix}}247 off`.", "left247On": "✅ تم المغادرة بنجاح.\nوضع 24/7 **مفعّل** — لن يعود البوت تلقائياً. استخدم `{{prefix}}play` لإعادته، أو `{{prefix}}247 off` لتعطيله بالكامل.\nاستخدم `{{prefix}}247` لعرض جميع القنوات المحفوظة.", - "autoRejoinHint": "⚠️ وضع 24/7 مفعّل (تلقائي) — سأعيد الانضمام إلى <#{{channel}}> خلال بضع ثوانٍ.\nلتتمكن من إزالتي بشكل دائم، عطّل وضع 24/7 أولاً: `{{prefix}}247 off`" + "autoRejoinHint": "⚠️ وضع 24/7 مفعّل (تلقائي) — سأعيد الانضمام إلى <#{{channel}}> خلال بضع ثوانٍ.\nلتتمكن من إزالتي بشكل دائم، عطّل وضع 24/7 أولاً: `{{prefix}}247 off`", + "sessionEndedTitle": "انتهت الجلسة الصوتية", + "leftChannel": "تمت مغادرة {{channel}}", + "disconnectedBadge": "تم قطع الاتصال", + "queueCleared": "تم تفريغ القائمة", + "rejoinHint": "انضم في أي وقت بـ {{prefix}}join أو {{prefix}}play" }, "list": { "empty": "📭 قائمة الانتظار فارغة. استخدم `{{prefix}}play` لإضافة أغاني!", @@ -393,7 +404,12 @@ "measuring": "🏓 جارٍ قياس البينغ...", "roundtrip": "📶 **زمن الاستجابة**", "gateway": "🌐 **البوابة**", - "node": "🎧 **NodeLink**" + "node": "🎧 **NodeLink**", + "pingDashboard": "صحة الشبكة وعقدة الصوت", + "operational": "تعمل بشكل ممتاز", + "restApi": "واجهة برمجة التطبيقات REST", + "gatewayWs": "بوابة WebSocket", + "audioNode": "عقدة الصوت" }, "play": { "searching": "🔍 جارٍ البحث...", @@ -721,7 +737,11 @@ "thumbnail": { "nothingPlaying": "لا يوجد شيء يعمل حالياً.", "noThumbnail": "لا تتوفر صورة مصغرة.", - "thumbnail": "الصورة المصغرة لـ [{{title}}]({{url}}):" + "thumbnail": "الصورة المصغرة لـ [{{title}}]({{url}}):", + "thumbTitle": "غلاف الألبوم", + "highRes": "دقة عالية", + "noArtwork": "❌ لا يتوفر غلاف لهذا المقطع.", + "expandHint": "اضغط على الصورة للتكبير" }, "volume": { "current": "🔊 مستوى الصوت الحالي: `{{volume}}%`", @@ -896,7 +916,9 @@ "exceedsDuration": "❌ موضع الانتقال يتجاوز مدة المقطع (**{{duration}}**).", "seeked": "⏩ تم الانتقال إلى **{{position}}**", "notSupported": "❌ الانتقال غير مدعوم من عقدة الصوت الحالية.", - "failed": "❌ فشل الانتقال: {{error}}" + "failed": "❌ فشل الانتقال: {{error}}", + "seekTitle": "تم الانتقال للموضع", + "seekSubtitle": "{{position}} / {{duration}}" }, "autoplay": { "enabled": "🔁 التشغيل التلقائي **مفعّل** — سيتم إضافة مقاطع مشابهة تلقائياً عند انتهاء القائمة.", @@ -944,19 +966,30 @@ "bassboost": { "disabled": "🔇 تم تعطيل تضخيم الباس — استعادة توازن الصوت الأصلي.", "applied": "🔊 تم تطبيق **تضخيم الباس ({{level}})**! معادل الصوت نشط الآن.", - "failed": "❌ فشل تطبيق تضخيم الباس: {{reason}}" + "failed": "❌ فشل تطبيق تضخيم الباس: {{reason}}", + "eqTitle": "تم تطبيق معادل الصوت", + "subBass": "الباس الفرعي", + "midBass": "الباس المتوسط", + "high": "التردد العالي", + "resetHint": "إعادة التعيين في أي وقت بـ {{prefix}}bassboost off" }, "speed": { "reset": "⏩ تمت إعادة ضبط سرعة التشغيل إلى الوضع الطبيعي **1.0×**.", "current": "⏩ سرعة التشغيل الحالية: **{{speed}}×**.\nاستخدم `{{prefix}}speed <0.5-2.0>` لتغيير السرعة.", "set": "{{emoji}} تم ضبط سرعة التشغيل على **{{speed}}×**.", - "failed": "❌ فشل تعديل السرعة: {{reason}}" + "failed": "❌ فشل تعديل السرعة: {{reason}}", + "speedTitle": "تم تعديل سرعة التشغيل", + "speedMultiplier": "مضاعف {{speed}}×", + "resetHint": "إعادة التعيين في أي وقت بـ {{prefix}}speed" }, "pitch": { "reset": "🎵 تمت إعادة ضبط طبقة الصوت إلى الوضع الطبيعي **1.0×**.", "current": "🎵 طبقة الصوت الحالية: **{{pitch}}×**.\nاستخدم `{{prefix}}pitch <0.5-2.0>` لتغيير الطبقة.", "set": "🎵 تم ضبط طبقة الصوت على **{{pitch}}×**.", - "failed": "❌ فشل تعديل طبقة الصوت: {{reason}}" + "failed": "❌ فشل تعديل طبقة الصوت: {{reason}}", + "pitchTitle": "تم تعديل نبرة الصوت", + "pitchMultiplier": "تغيير النبرة {{pitch}}×", + "resetHint": "إعادة التعيين في أي وقت بـ {{prefix}}pitch" } } } diff --git a/storage/locales/bot/ckb.json b/storage/locales/bot/ckb.json index de8b4c1..6117a47 100644 --- a/storage/locales/bot/ckb.json +++ b/storage/locales/bot/ckb.json @@ -284,7 +284,10 @@ "pickerClosed": "👋 هەڵبژاردەری فلتەر داخرا.", "footer": "لاپەڕە {{page}}/{{total}} • بە ئیمۆجیی فلتەرێک واڕۆژێنەرەوە بۆ گۆڕین", "activeLabel": "**← چالاک**", - "closeHint": "❌ داخستن" + "closeHint": "❌ داخستن", + "activePrefix": "چالاک:", + "realtimeDsp": "چارەسەری دەنگی ڕاستەوخۆ", + "navHint": "کارلێک بکە بە ئیمۆجی بۆ گۆڕین • ❌ بۆ داخستن" }, "forceleave": { "channelNotFound": "❌ کەناڵەکە نەدۆزرایەوە.", @@ -308,7 +311,10 @@ "autoLeaveInactive": "لە کەناڵی <#{{channel}}> دەرچوو بەهۆی بێچالاکبوون.", "autoLeaveInactive247": "لە کەناڵی <#{{channel}}> دەرچوو بەهۆی بێچالاکبوون.\nئەگەر دەتەوێت لە دەنگ بمێنیتەوە، `{{prefix}}247 on/auto` بەکاربهێنە\nبۆ بینین و بەڕێوەبردنی هەموو کەناڵە پاشەکەوتکراوەکان `{{prefix}}247` بەکاربهێنە.", "joinFailedPerms": "❌ مۆڵەتی پێوەستبوون بە <#{{channel}}>م نییە. تکایە دڵنیا ببەرەوە لەوەی مۆڵەتی **پەیوەستبوون**م هەیە.", - "voiceChannelUnknown": "کەناڵی دەنگی نەناسراو" + "voiceChannelUnknown": "کەناڵی دەنگی نەناسراو", + "sessionStartedTitle": "پەیوەندی بە دەنگەوە کرا", + "joinedChannel": "پەیوەستکراوە بە {{channel}}", + "connectedBadge": "پەیوەستە" }, "leave": { "noVoiceChannel": "⚠️ تکایە سەرەتا بەشداری کەناڵێکی دەنگی بکە، یان یەکێک دیاریبکە: `{{prefix}}leave <#channel>`", @@ -321,7 +327,12 @@ "left": "✅ بە سەرکەوتوویی دەرچوو", "leftRejoin247": "✅ بە سەرکەوتوویی دەرچوو — دووبارە بەشداری <#{{channel}}> دەکەم لە چەند چرکەیەکدا.\nبۆ ناچالاککردنی دۆخی 24/7 بەهەمیشەیی، `{{prefix}}247 off` بەکاربهێنە.", "left247On": "✅ بە سەرکەوتوویی دەرچوو.\nدۆخی 24/7 **چالاکە** — بۆتەکە دووبارە خۆی ناچێتەوە. `{{prefix}}play` بەکاربهێنە بۆ گەڕاندنی، یان `{{prefix}}247 off` بۆ ناچالاککردنی تەواو.\n`{{prefix}}247` بەکاربهێنە بۆ بینینی هەموو کەناڵە پاشەکەوتکراوەکان.", - "autoRejoinHint": "⚠️ دۆخی 24/7 چالاکە (خۆکار) — دووبارە بەشداری <#{{channel}}> دەکەم لە چەند چرکەیەکدا.\nبۆ لابردنی من بەهەمیشەیی، سەرەتا دۆخی 24/7 ناچالاک بکە: `{{prefix}}247 off`" + "autoRejoinHint": "⚠️ دۆخی 24/7 چالاکە (خۆکار) — دووبارە بەشداری <#{{channel}}> دەکەم لە چەند چرکەیەکدا.\nبۆ لابردنی من بەهەمیشەیی، سەرەتا دۆخی 24/7 ناچالاک بکە: `{{prefix}}247 off`", + "sessionEndedTitle": "دانیشتنی دەنگ کۆتایی هات", + "leftChannel": "جێهێشتنی {{channel}}", + "disconnectedBadge": "پچڕا", + "queueCleared": "ڕیزبەندی پاککرایەوە", + "rejoinHint": "بچۆ ژوورەوە لە هەر کاتێکدا بە {{prefix}}join یان {{prefix}}play" }, "list": { "empty": "📭 ڕیزبەندییەکە بەتاڵە. `{{prefix}}play` بەکاربهێنە بۆ زیادکردنی گۆرانی!", @@ -393,7 +404,12 @@ "measuring": "🏓 پینگ دەپێورێت...", "roundtrip": "📶 **ماوەی وەڵام**", "gateway": "🌐 **دەروازە**", - "node": "🎧 **NodeLink**" + "node": "🎧 **NodeLink**", + "pingDashboard": "تەندروستی تۆڕ و نۆدی دەنگ", + "operational": "کارایە", + "restApi": "ڕاستاندنی REST API", + "gatewayWs": "دەروازەی WebSocket", + "audioNode": "نۆدی دەنگ" }, "play": { "searching": "🔍 گەڕان...", @@ -721,7 +737,11 @@ "thumbnail": { "nothingPlaying": "هیچ شتێک پەخش ناکرێت لە ئێستادا.", "noThumbnail": "وێنەی بچووک بەردەست نییە.", - "thumbnail": "وێنەی بچووکی [{{title}}]({{url}}):" + "thumbnail": "وێنەی بچووکی [{{title}}]({{url}}):", + "thumbTitle": "وێنەی ئەلبووم", + "highRes": "کوالیتی بەرز", + "noArtwork": "❌ هیچ وێنەیەک بۆ ئەم تراکە بەردەست نییە.", + "expandHint": "کرتە لە وێنەکە بکە بۆ گەورەکردن" }, "volume": { "current": "🔊 ئاستی دەنگی ئێستا: `{{volume}}%`", @@ -896,7 +916,9 @@ "exceedsDuration": "❌ شوێنی گەڕانەوە لە ماوەی تراکەکە زیاترە (**{{duration}}**).", "seeked": "⏩ گەڕایەوە بۆ **{{position}}**", "notSupported": "❌ گەڕانەوە لەلایەن گرێی دەنگی ئێستاوە پشتگیری ناکرێت.", - "failed": "❌ گەڕانەوە سەرکەوتوو نەبوو: {{error}}" + "failed": "❌ گەڕانەوە سەرکەوتوو نەبوو: {{error}}", + "seekTitle": "شوێن گۆڕدرا", + "seekSubtitle": "{{position}} / {{duration}}" }, "autoplay": { "enabled": "🔁 لێدانی خۆکار **چالاک کرا** — تراکی هاوشێوە بە خۆکارایەتی زیاد دەکرێن کاتێک ڕیزبەندییەکە تەواو بوو.", @@ -944,19 +966,30 @@ "bassboost": { "disabled": "🔇 بەرزکردنەوەی باس ناچالاک کرا — هاوسەنگی دەنگی سەرەتایی گەڕایەوە.", "applied": "🔊 **بەرزکردنەوەی باس ({{level}})** جێبەجێکرا! ئیكوالایزەر چالاکە.", - "failed": "❌ جێبەجێکردنی بەرزکردنەوەی باس سەرکەوتوو نەبوو: {{reason}}" + "failed": "❌ جێبەجێکردنی بەرزکردنەوەی باس سەرکەوتوو نەبوو: {{reason}}", + "eqTitle": "فلتەری دەنگ جێبەجێ کرا", + "subBass": "باسی ژێرەوە", + "midBass": "باسی ناوەند", + "high": "دەنگی بەرز", + "resetHint": "ڕێکخستنەوە لە هەر کاتێکدا بە {{prefix}}bassboost off" }, "speed": { "reset": "⏩ خێرایی لێدان گەڕایەوە بۆ باری ئاسایی **1.0×**.", "current": "⏩ خێرایی لێدانی ئێستا: **{{speed}}×**.\nبۆ گۆڕینی خێرایی `{{prefix}}speed <0.5-2.0>` بەکاربهێنە.", "set": "{{emoji}} خێرایی لێدان دانرا لەسەر **{{speed}}×**.", - "failed": "❌ گۆڕینی خێرایی سەرکەوتوو نەبوو: {{reason}}" + "failed": "❌ گۆڕینی خێرایی سەرکەوتوو نەبوو: {{reason}}", + "speedTitle": "خێرایی لێدان ڕێکخرا", + "speedMultiplier": "لێکدانی {{speed}}×", + "resetHint": "ڕێکخستنەوە لە هەر کاتێکدا بە {{prefix}}speed" }, "pitch": { "reset": "🎵 تۆنی دەنگ گەڕایەوە بۆ باری ئاسایی **1.0×**.", "current": "🎵 تۆنی دەنگی ئێستا: **{{pitch}}×**.\nبۆ گۆڕینی تۆن `{{prefix}}pitch <0.5-2.0>` بەکاربهێنە.", "set": "🎵 تۆنی دەنگ دانرا لەسەر **{{pitch}}×**.", - "failed": "❌ گۆڕینی تۆنی دەنگ سەرکەوتوو نەبوو: {{reason}}" + "failed": "❌ گۆڕینی تۆنی دەنگ سەرکەوتوو نەبوو: {{reason}}", + "pitchTitle": "تۆنی دەنگ ڕێکخرا", + "pitchMultiplier": "گۆڕینی تۆن {{pitch}}×", + "resetHint": "ڕێکخستنەوە لە هەر کاتێکدا بە {{prefix}}pitch" } } } diff --git a/storage/locales/bot/de-DE.json b/storage/locales/bot/de-DE.json index 0b0e1a4..22c1c6a 100644 --- a/storage/locales/bot/de-DE.json +++ b/storage/locales/bot/de-DE.json @@ -284,7 +284,10 @@ "pickerClosed": "👋 Filter-Picker geschlossen.", "footer": "Seite {{page}}/{{total}} • Reagiere mit einem Filter-Emoji zum Umschalten", "activeLabel": "**← aktiv**", - "closeHint": "❌ Schließen" + "closeHint": "❌ Schließen", + "activePrefix": "Aktiv:", + "realtimeDsp": "Echtzeit-DSP", + "navHint": "Mit Emoji reagieren zum Umschalten • ❌ zum Schließen" }, "forceleave": { "channelNotFound": "❌ Kanal nicht gefunden.", @@ -308,7 +311,10 @@ "autoLeaveInactive": "Kanal <#{{channel}}> wegen Inaktivität verlassen.", "autoLeaveInactive247": "Kanal <#{{channel}}> wegen Inaktivität verlassen.\nWenn ich im Sprachkanal bleiben soll, nutze `{{prefix}}247 on` oder `{{prefix}}247 auto`\n💡 Nutze `{{prefix}}247` um alle gespeicherten Kanäle zu sehen und zu verwalten.", "joinFailedPerms": "❌ Ich habe keine Berechtigung, <#{{channel}}> beizutreten. Bitte prüfe, ob ich die **Verbinden**-Berechtigung habe.", - "voiceChannelUnknown": "unbekannter Sprachkanal" + "voiceChannelUnknown": "unbekannter Sprachkanal", + "sessionStartedTitle": "Sprach-Sitzung Verbunden", + "joinedChannel": "Verbunden mit {{channel}}", + "connectedBadge": "Verbunden" }, "leave": { "noVoiceChannel": "⚠️ Bitte trete zuerst einem Sprachkanal bei oder gib einen an: `{{prefix}}leave <#channel>`", @@ -321,7 +327,12 @@ "left": "✅ Erfolgreich verlassen", "leftRejoin247": "✅ Erfolgreich verlassen — trete <#{{channel}}> in wenigen Sekunden wieder bei.\nUm den 24/7-Modus dauerhaft zu deaktivieren, nutze `{{prefix}}247 off`.", "left247On": "✅ Erfolgreich verlassen.\n24/7-Modus ist **aktiv** — Bot wird nicht automatisch wiederkommen. Nutze `{{prefix}}play`, um ihn zurückzuholen, oder `{{prefix}}247 off` zum vollständigen Deaktivieren.\nNutze `{{prefix}}247` um alle gespeicherten Kanäle zu sehen.", - "autoRejoinHint": "⚠️ 24/7-Modus ist aktiviert (auto) — trete <#{{channel}}> in wenigen Sekunden wieder bei.\nUm mich dauerhaft zu entfernen, deaktiviere zuerst den 24/7-Modus: `{{prefix}}247 off`" + "autoRejoinHint": "⚠️ 24/7-Modus ist aktiviert (auto) — trete <#{{channel}}> in wenigen Sekunden wieder bei.\nUm mich dauerhaft zu entfernen, deaktiviere zuerst den 24/7-Modus: `{{prefix}}247 off`", + "sessionEndedTitle": "Sprach-Sitzung Beendet", + "leftChannel": "{{channel}} verlassen", + "disconnectedBadge": "Getrennt", + "queueCleared": "Warteschlange geleert", + "rejoinHint": "Jederzeit beitreten mit {{prefix}}join oder {{prefix}}play" }, "list": { "empty": "📭 Die Warteschlange ist leer. Nutze `{{prefix}}play`, um Songs hinzuzufügen!", @@ -393,7 +404,12 @@ "measuring": "🏓 Ping wird gemessen...", "roundtrip": "📶 **Latenz**", "gateway": "🌐 **Gateway**", - "node": "🎧 **NodeLink**" + "node": "🎧 **NodeLink**", + "pingDashboard": "Netzwerk- und Audio-Knoten-Status", + "operational": "Betriebsbereit", + "restApi": "REST-API", + "gatewayWs": "Gateway-WebSocket", + "audioNode": "Audio-Knoten" }, "play": { "searching": "🔍 Suche...", @@ -721,7 +737,11 @@ "thumbnail": { "nothingPlaying": "Es wird gerade nichts abgespielt.", "noThumbnail": "Kein Thumbnail verfügbar.", - "thumbnail": "Thumbnail von [{{title}}]({{url}}):" + "thumbnail": "Thumbnail von [{{title}}]({{url}}):", + "thumbTitle": "Album-Cover", + "highRes": "Hohe Auflösung", + "noArtwork": "❌ Kein Cover für diesen Titel verfügbar.", + "expandHint": "Klicke auf das Bild zum Vergrößern" }, "volume": { "current": "🔊 Aktuelle Lautstärke: `{{volume}}%`", @@ -896,7 +916,9 @@ "exceedsDuration": "❌ Sprungposition überschreitet Track-Dauer (**{{duration}}**).", "seeked": "⏩ Gesprungen zu **{{position}}**", "notSupported": "❌ Springen wird vom aktuellen Audio-Knoten nicht unterstützt.", - "failed": "❌ Springen fehlgeschlagen: {{error}}" + "failed": "❌ Springen fehlgeschlagen: {{error}}", + "seekTitle": "Position Angesteuert", + "seekSubtitle": "{{position}} / {{duration}}" }, "autoplay": { "enabled": "🔁 Autoplay **aktiviert** — ähnliche Tracks werden automatisch hinzugefügt, wenn die Warteschlange endet.", @@ -944,19 +966,30 @@ "bassboost": { "disabled": "🔇 Bass-Boost deaktiviert — ursprüngliche Audiobalance wiederhergestellt.", "applied": "🔊 **Bass-Boost ({{level}})** angewendet! Echtzeit-Equalizer aktiv.", - "failed": "❌ Bass-Boost konnte nicht angewendet werden: {{reason}}" + "failed": "❌ Bass-Boost konnte nicht angewendet werden: {{reason}}", + "eqTitle": "Equalizer-Voreinstellung Angewendet", + "subBass": "Sub-Bass", + "midBass": "Mittel-Bass", + "high": "Höhen", + "resetHint": "Jederzeit zurücksetzen mit {{prefix}}bassboost off" }, "speed": { "reset": "⏩ Wiedergabegeschwindigkeit auf normale **1.0×** zurückgesetzt.", "current": "⏩ Aktuelle Wiedergabegeschwindigkeit: **{{speed}}×**.\nVerwende `{{prefix}}speed <0.5-2.0>`, um die Geschwindigkeit zu ändern.", "set": "{{emoji}} Wiedergabegeschwindigkeit auf **{{speed}}×** gesetzt.", - "failed": "❌ Geschwindigkeit konnte nicht geändert werden: {{reason}}" + "failed": "❌ Geschwindigkeit konnte nicht geändert werden: {{reason}}", + "speedTitle": "Wiedergabegeschwindigkeit Angepasst", + "speedMultiplier": "{{speed}}× Multiplikator", + "resetHint": "Jederzeit zurücksetzen mit {{prefix}}speed" }, "pitch": { "reset": "🎵 Tonhöhe auf normale **1.0×** zurückgesetzt.", "current": "🎵 Aktuelle Tonhöhe: **{{pitch}}×**.\nVerwende `{{prefix}}pitch <0.5-2.0>`, um die Tonhöhe zu ändern.", "set": "🎵 Tonhöhe auf **{{pitch}}×** gesetzt.", - "failed": "❌ Tonhöhe konnte nicht geändert werden: {{reason}}" + "failed": "❌ Tonhöhe konnte nicht geändert werden: {{reason}}", + "pitchTitle": "Tonhöhe Angepasst", + "pitchMultiplier": "{{pitch}}× Tonhöhenverschiebung", + "resetHint": "Jederzeit zurücksetzen mit {{prefix}}pitch" } } } diff --git a/storage/locales/bot/en.json b/storage/locales/bot/en.json index 4bdd4eb..1823657 100644 --- a/storage/locales/bot/en.json +++ b/storage/locales/bot/en.json @@ -284,7 +284,10 @@ "pickerClosed": "👋 Filter picker closed.", "footer": "Page {{page}}/{{total}} • React with a filter emoji to toggle it", "activeLabel": "**← active**", - "closeHint": "❌ Close" + "closeHint": "❌ Close", + "activePrefix": "Active:", + "realtimeDsp": "Real-time DSP", + "navHint": "React with emoji to toggle • ❌ to close" }, "forceleave": { "channelNotFound": "❌ Channel not found.", @@ -311,7 +314,10 @@ "autoLeaveInactive": "Left channel <#{{channel}}> because of inactivity.", "autoLeaveInactive247": "Left channel <#{{channel}}> because of inactivity.\nIf you want me to stay in voice, use `{{prefix}}247 on` or `{{prefix}}247 auto`\nUse `{{prefix}}247` to view and manage all saved channels.", "joinFailedPerms": "❌ I don't have permission to join <#{{channel}}>. Please check that I have the **Connect** permission.", - "voiceChannelUnknown": "unknown voice channel" + "voiceChannelUnknown": "unknown voice channel", + "sessionStartedTitle": "Voice Session Connected", + "joinedChannel": "Connected to {{channel}}", + "connectedBadge": "Connected" }, "leave": { "noVoiceChannel": "⚠️ I can't find you in a voice channel. Please join one, or if you're already in one, make sure I have **View Channel** and **Connect** permissions. You can also specify a channel: `{{prefix}}leave <#channel>`", @@ -324,7 +330,12 @@ "left": "✅ Successfully Left", "leftRejoin247": "✅ Successfully Left — rejoining <#{{channel}}> in a few seconds.\nTo disable 24/7 mode permanently, use `{{prefix}}247 off`.", "left247On": "✅ Successfully Left.\n24/7 mode is **on** — bot won't rejoin automatically. Use `{{prefix}}play` to bring it back, or `{{prefix}}247 off` to fully disable.\nUse `{{prefix}}247` to view all saved channels.", - "autoRejoinHint": "⚠️ 24/7 mode is enabled (auto) — I'll rejoin <#{{channel}}> in a few seconds.\nTo permanently remove me, disable 24/7 mode first: `{{prefix}}247 off`" + "autoRejoinHint": "⚠️ 24/7 mode is enabled (auto) — I'll rejoin <#{{channel}}> in a few seconds.\nTo permanently remove me, disable 24/7 mode first: `{{prefix}}247 off`", + "sessionEndedTitle": "Voice Session Ended", + "leftChannel": "Left {{channel}}", + "disconnectedBadge": "Disconnected", + "queueCleared": "Queue cleared", + "rejoinHint": "Join anytime with {{prefix}}join or {{prefix}}play" }, "lastfm": { "notConfigured": "❌ Last.fm integration is not configured on this bot. Ask the bot owner to add a Last.fm API key to the config.", @@ -510,7 +521,12 @@ "measuring": "🏓 Pinging...", "roundtrip": "📶 **Roundtrip**", "gateway": "🌐 **Gateway**", - "node": "🎧 **NodeLink**" + "node": "🎧 **NodeLink**", + "pingDashboard": "Network & Node Health", + "operational": "Operational", + "restApi": "REST API", + "gatewayWs": "Gateway WebSocket", + "audioNode": "Audio Node" }, "play": { "searching": "🔍 Searching...", @@ -838,7 +854,11 @@ "thumbnail": { "nothingPlaying": "There's nothing playing at the moment.", "noThumbnail": "No thumbnail available.", - "thumbnail": "Thumbnail of [{{title}}]({{url}}):" + "thumbnail": "Thumbnail of [{{title}}]({{url}}):", + "thumbTitle": "Album Artwork", + "highRes": "High Resolution", + "noArtwork": "❌ No thumbnail available for this track.", + "expandHint": "Click image to expand" }, "volume": { "current": "🔊 Current volume: `{{volume}}%`", @@ -896,7 +916,9 @@ "exceedsDuration": "❌ Seek position exceeds track duration (**{{duration}}**).", "seeked": "⏩ Seeked to **{{position}}**", "notSupported": "❌ Seeking is not supported by the current audio node.", - "failed": "❌ Failed to seek: {{error}}" + "failed": "❌ Failed to seek: {{error}}", + "seekTitle": "Position Jumped", + "seekSubtitle": "{{position}} / {{duration}}" }, "autoplay": { "enabled": "🔁 Autoplay **enabled** — similar tracks will be added automatically when the queue ends.", @@ -944,19 +966,30 @@ "bassboost": { "disabled": "🔇 Bass boost disabled — restored original audio balance.", "applied": "🔊 Applied **Bass Boost ({{level}})**! Real-time equalizer active.", - "failed": "❌ Failed to apply bass boost: {{reason}}" + "failed": "❌ Failed to apply bass boost: {{reason}}", + "eqTitle": "Equalizer Preset Applied", + "subBass": "Sub-Bass", + "midBass": "Mid-Bass", + "high": "High", + "resetHint": "Reset anytime with {{prefix}}bassboost off" }, "speed": { "reset": "⏩ Playback speed reset to normal **1.0×**.", "current": "⏩ Current playback speed: **{{speed}}×**.\nUse `{{prefix}}speed <0.5-2.0>` to change playback speed.", "set": "{{emoji}} Playback speed set to **{{speed}}×**.", - "failed": "❌ Failed to adjust speed: {{reason}}" + "failed": "❌ Failed to adjust speed: {{reason}}", + "speedTitle": "Playback Speed Adjusted", + "speedMultiplier": "{{speed}}× Multiplier", + "resetHint": "Reset anytime with {{prefix}}speed" }, "pitch": { "reset": "🎵 Audio pitch reset to normal **1.0×**.", "current": "🎵 Current audio pitch: **{{pitch}}×**.\nUse `{{prefix}}pitch <0.5-2.0>` to change pitch.", "set": "🎵 Audio pitch set to **{{pitch}}×**.", - "failed": "❌ Failed to adjust pitch: {{reason}}" + "failed": "❌ Failed to adjust pitch: {{reason}}", + "pitchTitle": "Audio Pitch Adjusted", + "pitchMultiplier": "{{pitch}}× Pitch Shift", + "resetHint": "Reset anytime with {{prefix}}pitch" } } } diff --git a/storage/locales/bot/pt-BR.json b/storage/locales/bot/pt-BR.json index 27ad2df..95d1ac2 100644 --- a/storage/locales/bot/pt-BR.json +++ b/storage/locales/bot/pt-BR.json @@ -284,7 +284,10 @@ "pickerClosed": "👋 Seletor de filtros fechado.", "footer": "Página {{page}}/{{total}} • Reaja com o emoji de um filtro para alternar", "activeLabel": "**← ativo**", - "closeHint": "❌ Fechar" + "closeHint": "❌ Fechar", + "activePrefix": "Ativo:", + "realtimeDsp": "DSP em Tempo Real", + "navHint": "Reaja com emoji para alternar • ❌ para fechar" }, "forceleave": { "channelNotFound": "❌ Canal não encontrado.", @@ -308,7 +311,10 @@ "autoLeaveInactive": "Sai do canal <#{{channel}}> por inatividade.", "autoLeaveInactive247": "Sai do canal <#{{channel}}> por inatividade.\nSe quiser que eu permaneça no canal de voz, use `{{prefix}}247 on/auto`\nUse `{{prefix}}247` para ver e gerenciar todos os canais salvos.", "joinFailedPerms": "❌ Não tenho permissão para entrar em <#{{channel}}>. Por favor, verifique se tenho a permissão de **Conectar**.", - "voiceChannelUnknown": "canal de voz desconhecido" + "voiceChannelUnknown": "canal de voz desconhecido", + "sessionStartedTitle": "Sessão de Voz Conectada", + "joinedChannel": "Conectado a {{channel}}", + "connectedBadge": "Conectado" }, "leave": { "noVoiceChannel": "⚠️ Por favor, entre em um canal de voz primeiro ou especifique um: `{{prefix}}leave <#channel>`", @@ -321,7 +327,12 @@ "left": "✅ Sai com sucesso", "leftRejoin247": "✅ Sai com sucesso — reentrando em <#{{channel}}> em alguns segundos.\nPara desativar o modo 24/7 permanentemente, use `{{prefix}}247 off`.", "left247On": "✅ Sai com sucesso.\nO modo 24/7 está **ativo** — o bot não voltará automaticamente. Use `{{prefix}}play` para trazê-lo de volta ou `{{prefix}}247 off` para desativar completamente.\nUse `{{prefix}}247` para ver todos os canais salvos.", - "autoRejoinHint": "⚠️ O modo 24/7 está ativado (auto) — vou reentrar em <#{{channel}}> em alguns segundos.\nPara me remover permanentemente, desative o modo 24/7 primeiro: `{{prefix}}247 off`" + "autoRejoinHint": "⚠️ O modo 24/7 está ativado (auto) — vou reentrar em <#{{channel}}> em alguns segundos.\nPara me remover permanentemente, desative o modo 24/7 primeiro: `{{prefix}}247 off`", + "sessionEndedTitle": "Sessão de Voz Encerrada", + "leftChannel": "Saiu de {{channel}}", + "disconnectedBadge": "Desconectado", + "queueCleared": "Fila limpa", + "rejoinHint": "Entre a qualquer momento com {{prefix}}join ou {{prefix}}play" }, "list": { "empty": "📭 A fila está vazia. Use `{{prefix}}play` para adicionar músicas!", @@ -393,7 +404,12 @@ "measuring": "🏓 Medindo o ping...", "roundtrip": "📶 **Latência**", "gateway": "🌐 **Gateway**", - "node": "🎧 **NodeLink**" + "node": "🎧 **NodeLink**", + "pingDashboard": "Saúde da Rede e do Nó de Áudio", + "operational": "Operacional", + "restApi": "API REST", + "gatewayWs": "WebSocket da Gateway", + "audioNode": "Nó de Áudio" }, "play": { "searching": "🔍 Buscando...", @@ -721,7 +737,11 @@ "thumbnail": { "nothingPlaying": "Não está tocando nada no momento.", "noThumbnail": "Nenhuma thumbnail disponível.", - "thumbnail": "Thumbnail de [{{title}}]({{url}}):" + "thumbnail": "Thumbnail de [{{title}}]({{url}}):", + "thumbTitle": "Capa do Álbum", + "highRes": "Alta Resolução", + "noArtwork": "❌ Nenhuma capa disponível para esta faixa.", + "expandHint": "Clique na imagem para expandir" }, "volume": { "current": "🔊 Volume atual: `{{volume}}%`", @@ -896,7 +916,9 @@ "exceedsDuration": "❌ Posição de busca excede a duração da faixa (**{{duration}}**).", "seeked": "⏩ Pulou para **{{position}}**", "notSupported": "❌ Busca não é suportada pelo nó de áudio atual.", - "failed": "❌ Falha ao buscar: {{error}}" + "failed": "❌ Falha ao buscar: {{error}}", + "seekTitle": "Posição Alterada", + "seekSubtitle": "{{position}} / {{duration}}" }, "autoplay": { "enabled": "🔁 Autoplay **ativado** — faixas similares serão adicionadas automaticamente quando a fila terminar.", @@ -944,19 +966,30 @@ "bassboost": { "disabled": "🔇 Reforço de graves desativado — equilíbrio de áudio original restaurado.", "applied": "🔊 **Reforço de Graves ({{level}})** aplicado! Equalizador em tempo real ativo.", - "failed": "❌ Falha ao aplicar reforço de graves: {{reason}}" + "failed": "❌ Falha ao aplicar reforço de graves: {{reason}}", + "eqTitle": "Predefinição de Equalizador Aplicada", + "subBass": "Sub-Grave", + "midBass": "Grave-Médio", + "high": "Agudo", + "resetHint": "Redefina a qualquer momento com {{prefix}}bassboost off" }, "speed": { "reset": "⏩ Velocidade de reprodução redefinida para **1.0×** normal.", "current": "⏩ Velocidade de reprodução atual: **{{speed}}×**.\nUse `{{prefix}}speed <0.5-2.0>` para alterar a velocidade.", "set": "{{emoji}} Velocidade de reprodução definida para **{{speed}}×**.", - "failed": "❌ Falha ao ajustar velocidade: {{reason}}" + "failed": "❌ Falha ao ajustar velocidade: {{reason}}", + "speedTitle": "Velocidade de Reprodução Ajustada", + "speedMultiplier": "Multiplicador de {{speed}}×", + "resetHint": "Redefina a qualquer momento com {{prefix}}speed" }, "pitch": { "reset": "🎵 Tom de áudio redefinido para **1.0×** normal.", "current": "🎵 Tom de áudio atual: **{{pitch}}×**.\nUse `{{prefix}}pitch <0.5-2.0>` para alterar o tom.", "set": "🎵 Tom de áudio definido para **{{pitch}}×**.", - "failed": "❌ Falha ao ajustar tom: {{reason}}" + "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" } } } diff --git a/storage/locales/bot/tr.json b/storage/locales/bot/tr.json index 91911c1..9065726 100644 --- a/storage/locales/bot/tr.json +++ b/storage/locales/bot/tr.json @@ -284,7 +284,10 @@ "pickerClosed": "👋 Filtre seçici kapatıldı.", "footer": "Sayfa {{page}}/{{total}} • Açıp kapatmak için bir filtre emojisine tepki verin", "activeLabel": "**← aktif**", - "closeHint": "❌ Kapat" + "closeHint": "❌ Kapat", + "activePrefix": "Etkin:", + "realtimeDsp": "Gerçek Zamanlı DSP", + "navHint": "Değiştirmek için emojiyle tepki verin • ❌ kapatmak için" }, "forceleave": { "channelNotFound": "❌ Kanal bulunamadı.", @@ -308,7 +311,10 @@ "autoLeaveInactive": "Hareketsizlik nedeniyle <#{{channel}}> kanalından ayrılındı.", "autoLeaveInactive247": "Hareketsizlik nedeniyle <#{{channel}}> kanalından ayrılındı.\nSesli kalmamı istiyorsanız `{{prefix}}247 on` veya `{{prefix}}247 auto` kullanın\nKayıtlı tüm kanalları görüntülemek ve yönetmek için `{{prefix}}247` kullanın.", "joinFailedPerms": "❌ <#{{channel}}> kanalına katılma iznim yok. Lütfen **Bağlan** iznim olduğundan emin olun.", - "voiceChannelUnknown": "bilinmeyen ses kanalı" + "voiceChannelUnknown": "bilinmeyen ses kanalı", + "sessionStartedTitle": "Ses Oturumu Bağlandı", + "joinedChannel": "{{channel}} kanalına bağlandı", + "connectedBadge": "Bağlandı" }, "leave": { "noVoiceChannel": "⚠️ Lütfen önce bir ses kanalına katılın veya bir tane belirtin: `{{prefix}}leave <#kanal>`", @@ -321,7 +327,12 @@ "left": "✅ Başarıyla Ayrıldı", "leftRejoin247": "✅ Başarıyla Ayrıldı — birkaç saniye içinde <#{{channel}}> kanalına tekrar katılınıyor.\n24/7 modunu kalıcı olarak devre dışı bırakmak için `{{prefix}}247 off` kullanın.", "left247On": "✅ Başarıyla Ayrıldı.\n24/7 modu **açık** — bot otomatik olarak tekrar katılmayacak. Geri getirmek için `{{prefix}}play` veya tamamen devre dışı bırakmak için `{{prefix}}247 off` kullanın.\nKayıtlı tüm kanalları görüntülemek için `{{prefix}}247` kullanın.", - "autoRejoinHint": "⚠️ 24/7 modu etkin (auto) — birkaç saniye içinde <#{{channel}}> kanalına tekrar katılacağım.\nBeni kalıcı olarak çıkarmak için önce 24/7 modunu devre dışı bırakın: `{{prefix}}247 off`" + "autoRejoinHint": "⚠️ 24/7 modu etkin (auto) — birkaç saniye içinde <#{{channel}}> kanalına tekrar katılacağım.\nBeni kalıcı olarak çıkarmak için önce 24/7 modunu devre dışı bırakın: `{{prefix}}247 off`", + "sessionEndedTitle": "Ses Oturumu Sona Erdi", + "leftChannel": "{{channel}} kanalından ayrıldı", + "disconnectedBadge": "Bağlantı Kesildi", + "queueCleared": "Sıra temizlendi", + "rejoinHint": "Tekrar katılmak için: {{prefix}}join veya {{prefix}}play" }, "lastfm": { "notConfigured": "❌ Last.fm entegrasyonu bu botta yapılandırılmamış. Bot sahibinden yapılandırmayı isteyin.", @@ -499,7 +510,12 @@ "measuring": "🏓 Ping ölçülüyor...", "roundtrip": "📶 **Gecikme**", "gateway": "🌐 **Gateway**", - "node": "🎧 **NodeLink**" + "node": "🎧 **NodeLink**", + "pingDashboard": "Ağ ve Ses Düğümü Durumu", + "operational": "Sorunsuz", + "restApi": "REST API", + "gatewayWs": "Ağ Geçidi WebSocket", + "audioNode": "Ses Düğümü" }, "play": { "searching": "🔍 Aranıyor...", @@ -827,7 +843,11 @@ "thumbnail": { "nothingPlaying": "Şu anda çalan bir şey yok.", "noThumbnail": "Küçük resim mevcut değil.", - "thumbnail": "[{{title}}]({{url}}) küçük resmi:" + "thumbnail": "[{{title}}]({{url}}) küçük resmi:", + "thumbTitle": "Albüm Resmi", + "highRes": "Yüksek Çözünürlük", + "noArtwork": "❌ Bu parça için kapak resmi bulunamadı.", + "expandHint": "Görseli büyütmek için tıklayın" }, "volume": { "current": "🔊 Mevcut ses seviyesi: `{{volume}}%`", @@ -856,7 +876,9 @@ "exceedsDuration": "❌ Konum parça süresini aşıyor (**{{duration}}**).", "seeked": "⏩ **{{position}}** konumuna gidildi", "notSupported": "❌ Mevcut ses düğümü konuma gitmeyi desteklemiyor.", - "failed": "❌ Konuma gitme başarısız: {{error}}" + "failed": "❌ Konuma gitme başarısız: {{error}}", + "seekTitle": "Konuma Atlandı", + "seekSubtitle": "{{position}} / {{duration}}" }, "autoplay": { "enabled": "🔁 Otomatik çalma **etkin** — kuyruk bittiğinde benzer parçalar otomatik olarak eklenecek.", @@ -904,19 +926,30 @@ "bassboost": { "disabled": "🔇 Bas güçlendirme devre dışı bırakıldı — orijinal ses dengesi geri yüklendi.", "applied": "🔊 **Bas Güçlendirme ({{level}})** uygulandı! Gerçek zamanlı ekolayzer aktif.", - "failed": "❌ Bas güçlendirme uygulanamadı: {{reason}}" + "failed": "❌ Bas güçlendirme uygulanamadı: {{reason}}", + "eqTitle": "Ekolayzır Önayarı Uygulandı", + "subBass": "Alt Bas", + "midBass": "Orta Bas", + "high": "Tiz", + "resetHint": "Sıfırlamak için: {{prefix}}bassboost off" }, "speed": { "reset": "⏩ Oynatma hızı normal **1.0×** seviyesine sıfırlandı.", "current": "⏩ Mevcut oynatma hızı: **{{speed}}×**.\nHızı değiştirmek için `{{prefix}}speed <0.5-2.0>` kullanın.", "set": "{{emoji}} Oynatma hızı **{{speed}}×** olarak ayarlandı.", - "failed": "❌ Hız ayarlanamadı: {{reason}}" + "failed": "❌ Hız ayarlanamadı: {{reason}}", + "speedTitle": "Oynatma Hızı Ayarlandı", + "speedMultiplier": "{{speed}}× Çarpanı", + "resetHint": "Sıfırlamak için: {{prefix}}speed" }, "pitch": { "reset": "🎵 Ses perdesi normal **1.0×** seviyesine sıfırlandı.", "current": "🎵 Mevcut ses perdesi: **{{pitch}}×**.\nPerdeyi değiştirmek için `{{prefix}}pitch <0.5-2.0>` kullanın.", "set": "🎵 Ses perdesi **{{pitch}}×** olarak ayarlandı.", - "failed": "❌ Ses perdesi ayarlanamadı: {{reason}}" + "failed": "❌ Ses perdesi ayarlanamadı: {{reason}}", + "pitchTitle": "Ses Tonu Ayarlandı", + "pitchMultiplier": "{{pitch}}× Ton Kaydırma", + "resetHint": "Sıfırlamak için: {{prefix}}pitch" }, "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."