From c0c95610ac76d89f61298c40c3ed13be3eddc3d8 Mon Sep 17 00:00:00 2001 From: NoLogicAlan Date: Tue, 27 Oct 2026 03:47:02 +0300 Subject: [PATCH] feat(player): add %skipto command, empty voice auto-pause, and server mute guard --- README.md | 2 + commands/pause.mjs | 2 + commands/resume.mjs | 2 + commands/skipto.mjs | 80 +++++++++++++++++++++++++ src/music/player/Queue.mjs | 16 +++++ src/voice/gateway/VoiceStateRouting.mjs | 53 ++++++++++++++++ storage/locales/bot/ar-SA.json | 24 +++++++- storage/locales/bot/ckb.json | 24 +++++++- storage/locales/bot/de-DE.json | 24 +++++++- storage/locales/bot/en.json | 24 +++++++- storage/locales/bot/pt-BR.json | 24 +++++++- storage/locales/bot/tr.json | 24 +++++++- 12 files changed, 287 insertions(+), 12 deletions(-) create mode 100644 commands/skipto.mjs diff --git a/README.md b/README.md index 3da0df5..b61f156 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ We believe essential music features should never be locked behind a paywall — * 🔎 **Universal Music Search** — Seamless search and playback across YouTube, YouTube Music, Spotify, SoundCloud, Deezer, Apple Music, Tidal, Bandcamp, Bilibili, plus direct HTTP/HTTPS and radio streams. * 🔄 **24/7 Voice Persistence** — Keeps the bot in designated voice channels around the clock with exponential backoff recovery, boot rejoin, and state restore across restarts. * ⏪ **Playback History & `%previous`** — Dedicated 20-track circular playback history ring buffer to step backward (`%previous`, `%undo`) without lost tracks. +* ⏸️ **Smart Auto-Pause & Mute Protection** — Automatically pauses playback when voice channels empty (auto-resuming when members return) or when server-muted by administrators. * 🔁 **Instant Track Replay** — Restart the current song from 0:00 with `%replay` (or `%restart`) without re-fetching network streams. * 🎛️ **Audio Filters & DSP Studio** — Real-time audio transformations: Bassboost (low/medium/hard), Nightcore, Vaporwave, 8D audio, and fine-grained `%speed` & `%pitch` tuning. * 📊 **Loudness Normalization** — Built-in EBU R128 / ReplayGain leveling (`%normalize`) to eliminate volume jumps between quiet acoustic songs and loud EDM tracks. @@ -87,6 +88,7 @@ The default prefix is `%`. Server administrators can customize the prefix at any | Command | Aliases | Description | Example | | :--- | :--- | :--- | :--- | | `list` | `queue`, `q` | Display interactive paginated queue | `%list` | +| `skipto` | `jump`, `jumpto` | Skip directly to track #X in the queue | `%skipto 4` | | `shuffle` | — | Randomize the order of queued tracks | `%shuffle` | | `move` | `mv`, `m` | Move a song from one position to another | `%move 4 1` | | `remove` | — | Remove a track or range from the queue | `%remove 3` / `%remove 5-8` | diff --git a/commands/pause.mjs b/commands/pause.mjs index ae10daa..030f72c 100644 --- a/commands/pause.mjs +++ b/commands/pause.mjs @@ -42,6 +42,8 @@ export async function run(message) { } p.pause(); + p._autoPausedEmpty = false; + p._serverMutedAutoPaused = false; const elapsed = p.getCurrentElapsedDuration(); const trackUrl = current.spotifyUrl || current.url || null; const rawAuthor = current.artist || (typeof current.author === "object" ? current.author?.name : current.author); diff --git a/commands/resume.mjs b/commands/resume.mjs index 9fcab34..075b0f5 100644 --- a/commands/resume.mjs +++ b/commands/resume.mjs @@ -45,6 +45,8 @@ export async function run(message) { } p.resume(); + p._autoPausedEmpty = false; + p._serverMutedAutoPaused = false; const elapsed = p.getCurrentElapsedDuration(); const trackUrl = current.spotifyUrl || current.url || null; const rawAuthor = current.artist || (typeof current.author === "object" ? current.author?.name : current.author); diff --git a/commands/skipto.mjs b/commands/skipto.mjs new file mode 100644 index 0000000..ea95aa7 --- /dev/null +++ b/commands/skipto.mjs @@ -0,0 +1,80 @@ +/** + * @module commands/skipto + * @description Skip directly to a specific track position in the queue. + */ + +import { CommandBuilder } from "../src/commands/index.mjs"; +import { EmbedBuilder } from "@fluxerjs/core"; +import { Utils } from "../src/utils/Utils.mjs"; + +/** @type {CommandBuilder} @description Command definition for the skipto command. */ +export const command = new CommandBuilder() + .setName("skipto") + .setDescription("Skip directly to a specific track in the queue.", "commands.skipto") + .addAliases("jump", "jumpto") + .setCategory("music") + .addNumberOption(opt => + opt.setName("position") + .setDescription("The track number in the queue to jump to.", "options.skipto.position") + .setRequired(true) + ); + +/** + * @async + * Run handler for the skipto command. + * Skips all tracks prior to the target position and advances playback immediately. + * @param {object} message - The command message wrapper. + * @param {object} data - Parsed command data containing the position option. + * @returns {Promise} + */ +export async function run(message, data) { + const p = await this.getPlayer(message, true, true, false); + if (!p) return; + + const queueSize = p.queue?.size() ?? 0; + if (queueSize === 0) { + const embed = new EmbedBuilder() + .setColor(0xe9196c) + .setDescription(this.t(message, "responses.skipto.emptyQueue")); + return message.reply({ embeds: [embed] }); + } + + const rawPosition = data.get("position")?.value; + const position = parseInt(rawPosition, 10); + + if (isNaN(position) || position < 1 || position > queueSize) { + const embed = new EmbedBuilder() + .setColor(0xe9196c) + .setDescription(this.t(message, "responses.skipto.invalidPosition", { max: queueSize })); + return message.reply({ embeds: [embed] }); + } + + /* Preview targeted track before splicing */ + const targetTrack = p.queue.data[position - 1]; + const skippedCount = position; + + p.skipTo(position); + + const titleDisplay = targetTrack?.title ? Utils.truncate(targetTrack.title, 50) : this.t(message, "responses.play.unknownTrack"); + const trackLink = targetTrack?.spotifyUrl || targetTrack?.url || ""; + const rawAuthor = targetTrack?.artist || (typeof targetTrack?.author === "object" ? targetTrack.author?.name : targetTrack?.author); + const remainingInQueue = Math.max(0, queueSize - position); + + let desc = trackLink ? `**[${titleDisplay}](${trackLink})**` : `**${titleDisplay}**`; + if (rawAuthor) { + desc += `\n${this.t(message, "responses.play.byAuthor", { author: rawAuthor })}`; + } + + const embed = new EmbedBuilder() + .setColor(0xe9196c) + .setAuthor({ name: `⏭️ ${this.t(message, "responses.skipto.author")}` }) + .setTitle(this.t(message, "responses.skipto.title", { position, count: skippedCount })) + .setDescription(desc) + .setFooter({ text: this.t(message, "responses.skipto.footer", { remaining: remainingInQueue }) }); + + if (targetTrack?.thumbnail) { + embed.setThumbnail(targetTrack.thumbnail); + } + + return message.reply({ embeds: [embed] }); +} diff --git a/src/music/player/Queue.mjs b/src/music/player/Queue.mjs index 8935ef6..5c8867b 100644 --- a/src/music/player/Queue.mjs +++ b/src/music/player/Queue.mjs @@ -177,6 +177,22 @@ export class Queue extends EventEmitter { /** @returns {Array} Copy of recent playback history. */ getHistory() { return this.history.slice(); } + /** + * Remove all tracks before target index (0-based) and return the skipped tracks. + * @param {number} targetIndex - 0-based index of track to jump to. + * @returns {Array} Array of skipped tracks. + */ + skipTo(targetIndex) { + if (targetIndex <= 0) return []; + const count = Math.min(targetIndex, this.data.length); + const skipped = this.data.splice(0, count); + this.emit("queue", { + type: "skipTo", + data: { targetIndex, skipped, remaining: this.data.length } + }); + return skipped; + } + /** Remove all tracks from the queue. */ clear() { this.data.length = 0; } /** Clear the queue and reset all state (current, loops, history). */ diff --git a/src/voice/gateway/VoiceStateRouting.mjs b/src/voice/gateway/VoiceStateRouting.mjs index 87cfb9e..c59afb9 100644 --- a/src/voice/gateway/VoiceStateRouting.mjs +++ b/src/voice/gateway/VoiceStateRouting.mjs @@ -15,6 +15,7 @@ import { get247ChannelMode, isPlayerConnectionDead } from "../../utils/Helpers24 import { VoiceStateCache } from "../VoiceStateCache.mjs"; import { resolveIsBotUser } from "../VoiceStateResolver.mjs"; import { cleanId } from "../../utils/Utils.mjs"; +import { EmbedBuilder } from "@fluxerjs/core"; /** * @type {object} @@ -60,6 +61,40 @@ const VoiceStateRouting = { const isBotUser = isBot === true && userId === client.user?.id; + /* Handle server-mute (admin / community mute) on the bot */ + if (isBotUser && player) { + const isMuted = data?.mute === true || data?.suppress === true; + if (isMuted && !player._serverMuted) { + player._serverMuted = true; + if (player._audioBridge?.playing && !player._paused) { + player._serverMutedAutoPaused = true; + player.pause(); + logger.player(`[Player:${player._guildId}] Bot was server-muted by an admin — pausing playback`); + const muteEmbed = new EmbedBuilder() + .setColor(0xe9196c) + .setAuthor({ name: player._t?.("responses.play.serverMutedAuthor") ?? "🔇 Bot Muted by Server" }) + .setTitle(player._t?.("responses.play.serverMutedTitle") ?? "Playback Paused") + .setDescription(player._t?.("responses.play.serverMutedDesc") ?? "The bot was muted by a server administrator. Playback is paused to preserve track position.") + .setFooter({ text: "Remix Music • Will auto-resume when unmuted" }); + player.emit("message", { embeds: [muteEmbed] }); + } + } else if (!isMuted && player._serverMuted) { + player._serverMuted = false; + if (player._serverMutedAutoPaused && player._paused) { + player._serverMutedAutoPaused = false; + player.resume(); + logger.player(`[Player:${player._guildId}] Bot was server-unmuted — resuming playback`); + const unmuteEmbed = new EmbedBuilder() + .setColor(0xe9196c) + .setAuthor({ name: player._t?.("responses.play.serverUnmutedAuthor") ?? "🔊 Bot Unmuted" }) + .setTitle(player._t?.("responses.play.serverUnmutedTitle") ?? "Playback Resumed") + .setDescription(player._t?.("responses.play.serverUnmutedDesc") ?? "The bot was unmuted — automatically resuming playback.") + .setFooter({ text: "Remix Music • Auto-Resumed" }); + player.emit("message", { embeds: [unmuteEmbed] }); + } + } + } + if (!isBotUser) { this._handleInactivityOnVoiceChange(player, playerGuildId, homeChannelId, userId, oldChannelId, newChannelId, vsuGuildId, data); @@ -211,6 +246,12 @@ const VoiceStateRouting = { setTimeout(() => { if (!oldPlayer._hasHumansInChannel()) { logger.voiceState(`[VoiceState] Last human left ${cleanOld}, starting inactivity timer`); + /* Smart Auto-Pause: pause if playing to conserve bandwidth & hold position */ + if (oldPlayer._audioBridge?.playing && !oldPlayer._paused) { + oldPlayer._autoPausedEmpty = true; + oldPlayer.pause(); + logger.player(`[Player:${oldPlayer._guildId}] Auto-paused playback because voice channel is empty`); + } oldPlayer._startInactivityTimer(); } }, this.T.aloneCheckDebounce); @@ -225,6 +266,18 @@ const VoiceStateRouting = { if (newPlayer && typeof newPlayer._stopInactivityTimer === "function") { logger.voiceState(`[VoiceState] Human joined ${cleanChId}, stopping inactivity timer`); newPlayer._stopInactivityTimer(); + /* Smart Auto-Resume: resume if was paused because channel was empty */ + if (newPlayer._autoPausedEmpty && newPlayer._paused) { + newPlayer._autoPausedEmpty = false; + newPlayer.resume(); + logger.player(`[Player:${newPlayer._guildId}] Human joined ${cleanChId} — auto-resuming playback`); + const resumeEmbed = new EmbedBuilder() + .setColor(0xe9196c) + .setAuthor({ name: newPlayer._t?.("responses.play.autoResumeAuthor") ?? "▶️ Voice Channel Active" }) + .setDescription(newPlayer._t?.("responses.play.autoResumeDesc") ?? "Listener joined the voice channel — automatically resuming playback.") + .setFooter({ text: "Remix Music • Auto-Pause & Resume" }); + newPlayer.emit("message", { embeds: [resumeEmbed] }); + } } } catch(e) { logger.warn("[VoiceState] Inactivity timer stop failed:", e?.message); } } diff --git a/storage/locales/bot/ar-SA.json b/storage/locales/bot/ar-SA.json index facc39d..7e55b93 100644 --- a/storage/locales/bot/ar-SA.json +++ b/storage/locales/bot/ar-SA.json @@ -90,7 +90,8 @@ "speed": "تعديل سرعة تشغيل المقطع الصوتي الحالي (0.5× إلى 2.0×).", "pitch": "تعديل طبقة الصوت (النغمة) للمقطع الصوتي الحالي (0.5× إلى 2.0×).", "previous": "تشغيل الأغنية السابقة من سجل التشغيل.", - "replay": "إعادة تشغيل الأغنية الحالية من البداية." + "replay": "إعادة تشغيل الأغنية الحالية من البداية.", + "skipto": "التخطي مباشرة إلى أغنية معينة في قائمة الانتظار." }, "options": { "debug": { @@ -186,6 +187,9 @@ }, "lyrics": { "query": "عنوان الأغنية والفنان للبحث عن الكلمات (اختياري)." + }, + "skipto": { + "position": "رقم الأغنية في قائمة الانتظار للانتقال إليها." } }, "pagination": { @@ -512,7 +516,15 @@ "playbackErrorAuthor": "🎵 حارس بث التشغيل", "streamUnavailableTitle": "البث غير متوفر", "streamErrorTitle": "انقطع بث التشغيل", - "streamErrorFooter": "التخطي إلى المسار التالي • {{prefix}}play لإضافة المزيد من الأغاني" + "streamErrorFooter": "التخطي إلى المسار التالي • {{prefix}}play لإضافة المزيد من الأغاني", + "autoResumeAuthor": "▶️ القناة الصوتية نشطة", + "autoResumeDesc": "انضم مستمع إلى القناة الصوتية — استئناف التشغيل تلقائياً.", + "serverMutedAuthor": "🔇 تم كتم البوت من السيرفر", + "serverMutedTitle": "تم إيقاف التشغيل مؤقتاً", + "serverMutedDesc": "تم كتم البوت بواسطة مسؤول السيرفر. تم إيقاف التشغيل مؤقتاً للحفاظ على موضع الأغنية.", + "serverUnmutedAuthor": "🔊 تم إلغاء كتم البوت", + "serverUnmutedTitle": "تم استئناف التشغيل", + "serverUnmutedDesc": "تم إلغاء كتم البوت — استئناف التشغيل تلقائياً." }, "playnext": { "searching": "🔍 جارٍ البحث...", @@ -1243,6 +1255,14 @@ "author": "إعادة التشغيل • 0:00", "title": "تمت إعادة تشغيل الأغنية من البداية", "footer": "Remix Music • تشغيل من البداية (المدة: {{duration}})" + }, + "skipto": { + "emptyQueue": "قائمة الانتظار فارغة! لا توجد أغانٍ قادمة للانتقال إليها.", + "invalidPosition": "رقم غير صالح! يرجى إدخال رقم بين 1 و {{max}}.", + "failed": "تعذر الانتقال إلى الأغنية المحددة.", + "author": "التنقل في القائمة • تخطي الأغاني", + "title": "تم تخطي {{count}} مسار(مسارات) — الانتقال إلى #{{position}}", + "footer": "Remix Music • متبقي {{remaining}} مسار في قائمة الانتظار" } } } diff --git a/storage/locales/bot/ckb.json b/storage/locales/bot/ckb.json index 002ff0b..4262b8e 100644 --- a/storage/locales/bot/ckb.json +++ b/storage/locales/bot/ckb.json @@ -90,7 +90,8 @@ "speed": "دەستکاریکردنی خێرایی لێدانی تراکی ئێستا (0.5× بۆ 2.0×).", "pitch": "دەستکاریکردنی تۆن و ئاستی دەنگی تراکی ئێستا (0.5× بۆ 2.0×).", "previous": "لێدانی گۆرانی پێشوو لە مێژووی لێدان.", - "replay": "دووبارە لێدانی گۆرانیی ئێستا لە سەرەتاوە." + "replay": "دووبارە لێدانی گۆرانیی ئێستا لە سەرەتاوە.", + "skipto": "پەڕینەوەی ڕاستەوخۆ بۆ گۆرانییەکی دیاریکراو لە ڕیزبەندی." }, "options": { "debug": { @@ -186,6 +187,9 @@ }, "lyrics": { "query": "ناوی گۆرانی و هونەرمەند بۆ گەڕان بەدوای هۆنراوە (ئارەزوومەندانە)." + }, + "skipto": { + "position": "ژمارەی گۆرانییەکە لە ڕیزبەندی بۆ پەڕینەوە بۆی." } }, "pagination": { @@ -512,7 +516,15 @@ "playbackErrorAuthor": "🎵 پاسەوانی پەخشی لێدان", "streamUnavailableTitle": "پەخش بەردەست نییە", "streamErrorTitle": "پەخشی لێدان پچڕا", - "streamErrorFooter": "پەڕینەوە بۆ گۆرانی داهاتوو • {{prefix}}play بۆ زیادکردنی گۆرانی زیاتر" + "streamErrorFooter": "پەڕینەوە بۆ گۆرانی داهاتوو • {{prefix}}play بۆ زیادکردنی گۆرانی زیاتر", + "autoResumeAuthor": "▶️ ژووری دەنگی چالاکە", + "autoResumeDesc": "گوێگرێک هاتە ناو ژووری دەنگی — دەستپێکردنەوەی لێدان بەشێوەی خۆکار.", + "serverMutedAuthor": "🔇 بۆت لەلایەن سێرڤەرەوە بێدەنگ کرا", + "serverMutedTitle": "لێدان ڕاگیرا", + "serverMutedDesc": "بۆتەکە لەلایەن بەڕێوەبەری سێرڤەرەوە بێدەنگ کرا. لێدان ڕاگیرا بۆ پاراستنی شوێنی گۆرانی.", + "serverUnmutedAuthor": "🔊 بێدەنگی بۆت هەڵگیرا", + "serverUnmutedTitle": "لێدان دەستیپێکردەوە", + "serverUnmutedDesc": "بێدەنگی بۆت هەڵگیرا — لێدان بەشێوەی خۆکار دەستیپێکردەوە." }, "playnext": { "searching": "🔍 گەڕان...", @@ -1243,6 +1255,14 @@ "author": "دووبارە لێدان • 0:00", "title": "گۆرانییەکە لە سەرەتاوە دووبارە دەستیپێکردەوە", "footer": "Remix Music • لێدان لە سەرەتاوە (ماوە: {{duration}})" + }, + "skipto": { + "emptyQueue": "ڕیزبەندی بەتاڵە! هیچ گۆرانییەکی داهاتوو نییە بۆ پەڕینەوە بۆی.", + "invalidPosition": "ژمارەی نادروستە! تکایە ژمارەیەک لە نێوان 1 و {{max}} بنووسە.", + "failed": "پەڕینەوە بۆ گۆرانییە دیاریکراوەکە سەرکەوتوو نەبوو.", + "author": "گەڕان لە ڕیزبەندی • پەڕینەوەی گۆرانی", + "title": "{{count}} گۆرانی پەڕێندرا — پەڕینەوە بۆ #{{position}}", + "footer": "Remix Music • {{remaining}} گۆرانی لە ڕیزبەندی ماوەتەوە" } } } diff --git a/storage/locales/bot/de-DE.json b/storage/locales/bot/de-DE.json index 9637250..1b9a20c 100644 --- a/storage/locales/bot/de-DE.json +++ b/storage/locales/bot/de-DE.json @@ -90,7 +90,8 @@ "speed": "Wiedergabegeschwindigkeit des aktuellen Tracks anpassen (0.5× bis 2.0×).", "pitch": "Tonhöhe (Pitch) des aktuellen Tracks anpassen (0.5× bis 2.0×).", "previous": "Den vorherigen Titel aus dem Wiedergabeverlauf abspielen.", - "replay": "Den aktuellen Titel von vorne starten." + "replay": "Den aktuellen Titel von vorne starten.", + "skipto": "Direkt zu einem bestimmten Titel in der Warteschlange springen." }, "options": { "debug": { @@ -186,6 +187,9 @@ }, "lyrics": { "query": "Der Songtitel und Künstler, nach dessen Songtext gesucht werden soll (optional)." + }, + "skipto": { + "position": "Die Nummer des Titels in der Warteschlange, zu dem gesprungen werden soll." } }, "pagination": { @@ -512,7 +516,15 @@ "playbackErrorAuthor": "🎵 Wiedergabe-Stream-Wächter", "streamUnavailableTitle": "Stream nicht verfügbar", "streamErrorTitle": "Wiedergabe-Stream unterbrochen", - "streamErrorFooter": "Überspringe zum nächsten Track • {{prefix}}play für weitere Songs" + "streamErrorFooter": "Überspringe zum nächsten Track • {{prefix}}play für weitere Songs", + "autoResumeAuthor": "▶️ Sprachkanal aktiv", + "autoResumeDesc": "Ein Hörer ist dem Sprachkanal beigetreten — Wiedergabe wird automatisch fortgesetzt.", + "serverMutedAuthor": "🔇 Bot vom Server stummgeschaltet", + "serverMutedTitle": "Wiedergabe pausiert", + "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." }, "playnext": { "searching": "🔍 Suche...", @@ -1243,6 +1255,14 @@ "author": "Wiederholung • 0:00", "title": "Titel von Anfang an neu gestartet", "footer": "Remix Music • Wiedergabe vom Beginn (Dauer: {{duration}})" + }, + "skipto": { + "emptyQueue": "Die Warteschlange ist leer! Keine weiteren Titel zum Überspringen vorhanden.", + "invalidPosition": "Ungültige Position! Bitte gib eine Zahl zwischen 1 und {{max}} ein.", + "failed": "Das Springen zum ausgewählten Titel ist fehlgeschlagen.", + "author": "Warteschlangen-Navigation • Titel überspringen", + "title": "{{count}} Titel übersprungen — Zu #{{position}} gesprungen", + "footer": "Remix Music • Noch {{remaining}} Titel in der Warteschlange" } } } diff --git a/storage/locales/bot/en.json b/storage/locales/bot/en.json index d25cbfd..d7a5769 100644 --- a/storage/locales/bot/en.json +++ b/storage/locales/bot/en.json @@ -90,7 +90,8 @@ "speed": "Adjust the playback speed of the current track (0.5× to 2.0×).", "pitch": "Adjust the audio pitch of the current track (0.5× to 2.0×).", "previous": "Play the previous track from playback history.", - "replay": "Restart the current song from the beginning." + "replay": "Restart the current song from the beginning.", + "skipto": "Skip directly to a specific track in the queue." }, "options": { "debug": { @@ -186,6 +187,9 @@ }, "lyrics": { "query": "The song title and artist to search lyrics for (optional)." + }, + "skipto": { + "position": "The track number in the queue to jump to." } }, "pagination": { @@ -727,7 +731,15 @@ "playbackErrorAuthor": "🎵 Playback Stream Watchdog", "streamUnavailableTitle": "Stream Unavailable", "streamErrorTitle": "Playback Stream Interrupted", - "streamErrorFooter": "Skipping to next track • {{prefix}}play to queue more songs" + "streamErrorFooter": "Skipping to next track • {{prefix}}play to queue more songs", + "autoResumeAuthor": "▶️ Voice Channel Active", + "autoResumeDesc": "Listener joined the voice channel — automatically resuming playback.", + "serverMutedAuthor": "🔇 Bot Muted by Server", + "serverMutedTitle": "Playback Paused", + "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." }, "playnext": { "searching": "🔍 Searching...", @@ -1243,6 +1255,14 @@ "author": "Playback Replay • 0:00", "title": "Restarted Song From Beginning", "footer": "Remix Music • Playing from start (duration: {{duration}})" + }, + "skipto": { + "emptyQueue": "The queue is empty! There are no upcoming songs to jump to.", + "invalidPosition": "Invalid position! Please enter a number between 1 and {{max}}.", + "failed": "Failed to jump to the specified song.", + "author": "Queue Navigation • Jump Track", + "title": "Skipped {{count}} track(s) — Jumped to #{{position}}", + "footer": "Remix Music • {{remaining}} track(s) remaining in queue" } } } diff --git a/storage/locales/bot/pt-BR.json b/storage/locales/bot/pt-BR.json index e5587d0..ae0091e 100644 --- a/storage/locales/bot/pt-BR.json +++ b/storage/locales/bot/pt-BR.json @@ -90,7 +90,8 @@ "speed": "Ajustar a velocidade de reprodução da faixa atual (0.5× a 2.0×).", "pitch": "Ajustar o tom (pitch) do áudio da faixa atual (0.5× a 2.0×).", "previous": "Tocar a faixa anterior do histórico de reprodução.", - "replay": "Reiniciar a música atual do início." + "replay": "Reiniciar a música atual do início.", + "skipto": "Pular diretamente para uma faixa específica na fila." }, "options": { "debug": { @@ -186,6 +187,9 @@ }, "lyrics": { "query": "O título da música e o artista para pesquisar a letra (opcional)." + }, + "skipto": { + "position": "O número da faixa na fila para onde pular." } }, "pagination": { @@ -512,7 +516,15 @@ "playbackErrorAuthor": "🎵 Monitor de Fluxo de Reprodução", "streamUnavailableTitle": "Transmissão Indisponível", "streamErrorTitle": "Fluxo de Reprodução Interrompido", - "streamErrorFooter": "Pulando para a próxima faixa • {{prefix}}play para adicionar mais músicas" + "streamErrorFooter": "Pulando para a próxima faixa • {{prefix}}play para adicionar mais músicas", + "autoResumeAuthor": "▶️ Canal de Voz Ativo", + "autoResumeDesc": "Um ouvinte entrou no canal de voz — retomando a reprodução automaticamente.", + "serverMutedAuthor": "🔇 Bot Mutado pelo Servidor", + "serverMutedTitle": "Reprodução Pausada", + "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." }, "playnext": { "searching": "🔍 Buscando...", @@ -1243,6 +1255,14 @@ "author": "Repetir Faixa • 0:00", "title": "Música Reiniciada do Início", "footer": "Remix Music • Tocando do início (duração: {{duration}})" + }, + "skipto": { + "emptyQueue": "A fila está vazia! Não há faixas seguintes para pular.", + "invalidPosition": "Posição inválida! Insira um número entre 1 e {{max}}.", + "failed": "Falha ao pular para a faixa especificada.", + "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" } } } diff --git a/storage/locales/bot/tr.json b/storage/locales/bot/tr.json index 280a171..cdb4ff1 100644 --- a/storage/locales/bot/tr.json +++ b/storage/locales/bot/tr.json @@ -90,7 +90,8 @@ "pitch": "Mevcut parçanın ses perdesini (pitch) ayarlayın (0.5× ile 2.0× arası).", "vote": "FluxerList üzerinde sunucunuz/botunuz için oylama bilgilerini görüntüleyin veya oy verenleri kontrol edin", "previous": "Oynatma geçmişindeki önceki şarkıyı çal.", - "replay": "Çalan şarkıyı baştan başlat." + "replay": "Çalan şarkıyı baştan başlat.", + "skipto": "Kuyruktaki belirli bir şarkıya doğrudan atla." }, "options": { "debug": { @@ -186,6 +187,9 @@ }, "lyrics": { "query": "Şarkı sözlerini aramak için şarkı adı ve sanatçı (isteğe bağlı)." + }, + "skipto": { + "position": "Atlanacak şarkının kuyruktaki sıra numarası." } }, "pagination": { @@ -716,7 +720,15 @@ "playbackErrorAuthor": "🎵 Oynatma Akışı Denetleyicisi", "streamUnavailableTitle": "Akış Kullanılamıyor", "streamErrorTitle": "Oynatma Akışı Kesildi", - "streamErrorFooter": "Sonraki parçaya geçiliyor • Daha fazla şarkı için {{prefix}}play" + "streamErrorFooter": "Sonraki parçaya geçiliyor • Daha fazla şarkı için {{prefix}}play", + "autoResumeAuthor": "▶️ Ses Kanalı Aktif", + "autoResumeDesc": "Ses kanalına bir dinleyici katıldı — oynatma otomatik olarak sürdürülüyor.", + "serverMutedAuthor": "🔇 Bot Sunucuda Susturuldu", + "serverMutedTitle": "Oynatma Duraklatıldı", + "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." }, "playnext": { "searching": "🔍 Aranıyor...", @@ -1243,6 +1255,14 @@ "author": "Yeniden Oynat • 0:00", "title": "Şarkı Baştan Başlatıldı", "footer": "Remix Music • Baştan çalınıyor (süre: {{duration}})" + }, + "skipto": { + "emptyQueue": "Kuyruk boş! Atlanacak bir sonraki şarkı bulunmuyor.", + "invalidPosition": "Geçersiz sıra numarası! Lütfen 1 ile {{max}} arasında bir sayı girin.", + "failed": "Belirtilen şarkıya atlanamadı.", + "author": "Kuyruk Gezinme • Şarkıya Atla", + "title": "{{count}} şarkı atlandı — #{{position}} numaralı şarkıya geçildi", + "footer": "Remix Music • Kuyrukta kalan {{remaining}} şarkı" } } }