diff --git a/commands/previous.mjs b/commands/previous.mjs new file mode 100644 index 0000000..8052378 --- /dev/null +++ b/commands/previous.mjs @@ -0,0 +1,66 @@ +/** + * @module commands/previous + * @description Play the previous track from recent playback history (supports %prev, %back, %undo). + */ + +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 previous command. */ +export const command = new CommandBuilder() + .setName("previous") + .setDescription("Play the previous track from playback history.", "commands.previous") + .addAliases("prev", "back", "undo") + .setCategory("music"); + +/** + * @async + * Run handler for the previous command. + * Steps backward into the queue's circular playback history. + * @param {object} message - The command message wrapper. + * @returns {Promise} + */ +export async function run(message) { + const p = await this.getPlayer(message, true, true, false); + if (!p) return; + + if (!p.queue?.history?.length) { + const embed = new EmbedBuilder() + .setColor(0xe9196c) + .setDescription(this.t(message, "responses.previous.noHistory")); + return message.reply({ embeds: [embed] }); + } + + const prevSong = await p.playPrevious(); + if (!prevSong) { + const embed = new EmbedBuilder() + .setColor(0xe9196c) + .setDescription(this.t(message, "responses.previous.failed")); + return message.reply({ embeds: [embed] }); + } + + const titleDisplay = prevSong.title ? Utils.truncate(prevSong.title, 50) : this.t(message, "responses.play.unknownTrack"); + const trackLink = prevSong.spotifyUrl || prevSong.url || ""; + const rawAuthor = prevSong.artist || (typeof prevSong.author === "object" ? prevSong.author?.name : prevSong.author); + const thumb = prevSong.thumbnail || null; + const historyRemaining = p.queue.history.length; + + 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.previous.author")}` }) + .setTitle(this.t(message, "responses.previous.title")) + .setDescription(desc) + .setFooter({ text: this.t(message, "responses.previous.footer", { count: historyRemaining }) }); + + if (thumb) { + embed.setThumbnail(thumb); + } + + return message.reply({ embeds: [embed] }); +} diff --git a/commands/replay.mjs b/commands/replay.mjs new file mode 100644 index 0000000..5739175 --- /dev/null +++ b/commands/replay.mjs @@ -0,0 +1,75 @@ +/** + * @module commands/replay + * @description Restart the currently playing track from the beginning without re-fetching from source. + */ + +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 replay command. */ +export const command = new CommandBuilder() + .setName("replay") + .setDescription("Restart the current song from the beginning.", "commands.replay") + .addAliases("restart") + .setCategory("music"); + +/** + * @async + * Run handler for the replay command. + * Seeks the player back to 0:00. + * @param {object} message - The command message wrapper. + * @returns {Promise} + */ +export async function run(message) { + const p = await this.getPlayer(message, true, true, false); + if (!p) return; + + const current = p.queue?.getCurrent(); + if (!current) { + const embed = new EmbedBuilder() + .setColor(0xe9196c) + .setDescription(this.t(message, "responses.replay.nothingPlaying")); + return message.reply({ embeds: [embed] }); + } + + if (current.type === "radio" || current.isLive) { + const embed = new EmbedBuilder() + .setColor(0xe9196c) + .setDescription(this.t(message, "responses.replay.live")); + return message.reply({ embeds: [embed] }); + } + + const success = await p.seekToPosition(0); + if (!success) { + const embed = new EmbedBuilder() + .setColor(0xe9196c) + .setDescription(this.t(message, "responses.replay.failed")); + return message.reply({ embeds: [embed] }); + } + + const titleDisplay = current.title ? Utils.truncate(current.title, 50) : this.t(message, "responses.play.unknownTrack"); + const trackLink = current.spotifyUrl || current.url || ""; + const rawAuthor = current.artist || (typeof current.author === "object" ? current.author?.name : current.author); + const thumb = current.thumbnail || null; + const trackDuration = p._getTrackDurationMs(current); + const totalStr = trackDuration > 0 ? Utils.prettifyMS(trackDuration) : null; + + 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.replay.author")}` }) + .setTitle(this.t(message, "responses.replay.title")) + .setDescription(desc) + .setFooter({ text: totalStr ? this.t(message, "responses.replay.footer", { duration: totalStr }) : "Remix Music • Restarted from 0:00" }); + + if (thumb) { + embed.setThumbnail(thumb); + } + + return message.reply({ embeds: [embed] }); +} diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 11831b0..e2a43a7 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -62,24 +62,22 @@ services: - remix-net nodelink: - image: node:22-bookworm-slim + image: ghcr.io/performanc/nodelink:latest container_name: remix-nodelink restart: unless-stopped - working_dir: /nodelink - command: sh -c "if [ ! -f package.json ]; then npm init -y && npm install @performanc/nodelink; fi; node node_modules/@performanc/nodelink/index.js || node index.js" environment: - TZ=${TZ:-UTC} volumes: - - nodelink_data:/nodelink - - ./nodelink.config.json:/nodelink/config.json:ro + - nodelink_data:/app/.cache + - ./nodelink.config.json:/app/config.json:ro ports: - "${NODELINK_PORT:-3000}:3000" healthcheck: - test: ["CMD", "node", "-e", "require('net').connect(3000,'127.0.0.1').on('connect',function(){process.exit(0)}).on('error',function(){process.exit(1)})"] - interval: 5s - timeout: 3s - retries: 30 - start_period: 60s + test: ["CMD-SHELL", "node -e \"require('net').connect(3000,'127.0.0.1').on('connect',function(){process.exit(0)}).on('error',function(){process.exit(1)})\""] + interval: 10s + timeout: 5s + retries: 5 + start_period: 20s networks: - remix-net diff --git a/src/music/LavalinkManager.mjs b/src/music/LavalinkManager.mjs index 150eafc..01fd59b 100644 --- a/src/music/LavalinkManager.mjs +++ b/src/music/LavalinkManager.mjs @@ -73,14 +73,17 @@ export class LavalinkManager extends EventEmitter { nodeMgr.on("connect", (node) => { this._nodeConnected = true; logger.lavalink("[Lavalink] Node connected (nodeManager): " + node.id); + this.emit("nodeConnect", node); }); nodeMgr.on("disconnect", (node, reason) => { this._nodeConnected = false; logger.warn("[Lavalink] Node disconnected (nodeManager):", node?.id, reason); + this.emit("nodeDisconnect", node, reason); }); nodeMgr.on("reconnect", (node) => { this._nodeConnected = true; logger.lavalink("[Lavalink] Node reconnecting (nodeManager): " + node.id); + this.emit("nodeReconnect", node); }); } catch (e) { logger.warn("[Lavalink] nodeManager event setup error:", e?.message); @@ -92,16 +95,19 @@ export class LavalinkManager extends EventEmitter { this.lavalink.on("nodeConnect", (node) => { this._nodeConnected = true; logger.lavalink("[Lavalink] Node connected (manager): " + node.id); + this.emit("nodeConnect", node); }); this.lavalink.on("nodeReconnect", (node) => { this._nodeConnected = true; logger.lavalink("[Lavalink] Node reconnecting (manager): " + node.id); + this.emit("nodeReconnect", node); }); this.lavalink.on("nodeDisconnect", (node, reason) => { this._nodeConnected = false; logger.warn("[Lavalink] Node disconnected (manager):", node.id, reason); + this.emit("nodeDisconnect", node, reason); }); this.lavalink.on("nodeError", (node, err) => { diff --git a/src/music/audio/FluxerAudioBridge.mjs b/src/music/audio/FluxerAudioBridge.mjs index 56f44e5..451403f 100644 --- a/src/music/audio/FluxerAudioBridge.mjs +++ b/src/music/audio/FluxerAudioBridge.mjs @@ -330,6 +330,11 @@ export class FluxerAudioBridge extends EventEmitter { streamToPlay = remuxed; } this._stream = streamToPlay; + await this._awaitPendingUnpublishes(conn); + if (generation !== this._playGeneration) { + streamToPlay?.destroy?.(); + return "stopped"; + } await conn.play(streamToPlay); } catch (e) { if (generation !== this._playGeneration) return "stopped"; @@ -457,7 +462,9 @@ export class FluxerAudioBridge extends EventEmitter { } return await this._playOpened(conn, opened, durationMs, generation); } - // Zero-copy: the voice connection fetches the URL itself. + /* Zero-copy: ensure prior unpublish settled before publishing */ + await this._awaitPendingUnpublishes(conn); + if (stale()) return "stopped"; await conn.play(direct.url); } catch (e) { if (stale()) return "stopped"; @@ -508,14 +515,12 @@ export class FluxerAudioBridge extends EventEmitter { try { const room = conn?.room; const participant = room?.localParticipant; - if (!room?.isConnected || typeof participant?.unpublishTrack !== "function") return; + if (!room?.isConnected || !participant || typeof participant.unpublishTrack !== "function") return; const publications = participant.trackPublications; if (!publications || typeof publications.entries !== "function") return; - // One guard map per participant, shared by every bridge instance in this - // process: a SID currently being unpublished is skipped by later sweeps, - // and its promise is awaitable via _awaitPendingUnpublishes(). + /* One guard map per participant, shared by every bridge instance in this process */ let pending = pendingUnpublishSids.get(participant); if (!pending) { pending = new Map(); @@ -528,11 +533,20 @@ export class FluxerAudioBridge extends EventEmitter { if (pending.has(sid)) continue; try { const settle = Promise.resolve(participant.unpublishTrack(sid, true)) - .catch(() => {}) // failed unpublish is still a settled state — don't block on it + .catch((err) => { + /* Suppress benign race-condition errors during rapid track skips */ + if (!err || /Publication not found|AudioSource is closed|Participant not found|Track not found/i.test(err?.message || '')) { + return; + } + logger.warn?.("[AudioBridge] unpublishTrack warning: " + err.message); + }) .finally(() => { if (pending.get(sid) === settle) pending.delete(sid); }); pending.set(sid, settle); logger.player("[AudioBridge] Unpublished stale audio track: " + sid); - } catch (_) { + } catch (err) { + if (!err || /Publication not found|AudioSource is closed|Participant not found|Track not found/i.test(err?.message || '')) { + /* Benign race condition */ + } pending.delete(sid); } } diff --git a/src/music/player/PlaybackMixin.mjs b/src/music/player/PlaybackMixin.mjs index e9c6426..e74f20b 100644 --- a/src/music/player/PlaybackMixin.mjs +++ b/src/music/player/PlaybackMixin.mjs @@ -110,6 +110,28 @@ const PlaybackMixin = { finally { if (generation === this._playNextGeneration) this._playingNext = false; } }, + /** + * @async Step backward to the previous track in history. + * Restores the current track to the top of the queue and plays the previous track. + * @this {import('./Player.mjs').Player} + * @returns {Promise} The previous track or null if history is empty. + */ + async playPrevious() { + if (!this.queue || this.queue.history.length === 0) return null; + this._skipping = true; + this._bridgeStop(); + const prevSong = this.queue.previous(); + if (!prevSong) { + this._skipping = false; + return null; + } + this._playingNext = false; + this._radioAnnounced = false; + await this.playNext({ reuseCurrent: true }); + this._skipping = false; + return prevSong; + }, + /** * @private @async Core logic for advancing to the next track: resolves * track options, announces, starts playback via the bridge, arms the @@ -121,8 +143,8 @@ const PlaybackMixin = { this._bridgeStop(); const currentBeforeNext = this.queue.getCurrent(); - if (currentBeforeNext) this._lastPlayedTrack = currentBeforeNext; - const songData = this.queue.next(opts); + if (currentBeforeNext && !opts.reuseCurrent) this._lastPlayedTrack = currentBeforeNext; + const songData = opts.reuseCurrent ? this.queue.getCurrent() : this.queue.next(opts); if (!songData) { this.emit("stopplay"); this.emit("queueEnd"); diff --git a/src/music/player/Player.mjs b/src/music/player/Player.mjs index e18ea45..319d898 100644 --- a/src/music/player/Player.mjs +++ b/src/music/player/Player.mjs @@ -827,9 +827,9 @@ class Player extends EventEmitter { async resumePlaybackAfterNodeReconnect() { if (this._destroyed || this.leaving || !this._voiceConn) return false; const current = this.queue?.getCurrent(); - if (!current || !this._audioBridge?.playing) return false; + if (!current || this._paused) return false; - const posMs = this.computePosition(); + const posMs = Math.max(0, this.computePosition()); logger.player(`[Player:${this._guildId}] Node reconnected — resuming "${current.title}" at ${Math.round(posMs / 1000)}s`); try { @@ -1061,8 +1061,8 @@ class Player extends EventEmitter { /** @private Stop the audio bridge if currently playing. */ _bridgeStop() { - if (this._audioBridge?.playing) { - this._audioBridge.stop(); + if (this._audioBridge) { + try { this._audioBridge.stop(); } catch (_) {} } } diff --git a/src/music/player/Queue.mjs b/src/music/player/Queue.mjs index da01e11..8935ef6 100644 --- a/src/music/player/Queue.mjs +++ b/src/music/player/Queue.mjs @@ -26,6 +26,10 @@ export class Queue extends EventEmitter { loop = false; /** @type {boolean} Whether single-song loop is enabled. */ songLoop = false; + /** @type {Array} Circular buffer of recently played tracks. */ + history = []; + /** @type {number} Maximum number of tracks preserved in playback history. */ + static MAX_HISTORY = 20; /** Initialize an empty queue with no loop enabled. */ constructor() { @@ -50,6 +54,13 @@ export class Queue extends EventEmitter { if (!ignoreSongLoop && this.songLoop && this.current) return this.current; if (this.loop && this.current) this.data.push(this.current); + if (previous && (!this.songLoop || ignoreSongLoop)) { + this.history.push(previous); + if (this.history.length > Queue.MAX_HISTORY) { + this.history.shift(); + } + } + if (this.isEmpty()) { this.current = null; return null; @@ -143,10 +154,33 @@ export class Queue extends EventEmitter { return count; } + /** + * Step backward to the previous track from history. + * Restores the current track to the front of the queue so it is not lost. + * @returns {object|null} The restored previous track, or null if history is empty. + */ + previous() { + if (this.history.length === 0) return null; + const prevTrack = this.history.pop(); + if (this.current) { + this.data.unshift(this.current); + } + const old = this.current; + this.current = prevTrack; + this.emit("queue", { + type: "update", + data: { current: this.current, old, restored: true, loop: this.loop } + }); + return this.current; + } + + /** @returns {Array} Copy of recent playback history. */ + getHistory() { return this.history.slice(); } + /** Remove all tracks from the queue. */ clear() { this.data.length = 0; } - /** Clear the queue and reset all state (current, loops). */ - reset() { this.clear(); this.current = null; this.songLoop = false; this.loop = false; } + /** Clear the queue and reset all state (current, loops, history). */ + reset() { this.clear(); this.current = null; this.songLoop = false; this.loop = false; this.history.length = 0; } /** @param {boolean} bool - Enable or disable song loop. */ setSongLoop(bool) { this.songLoop = bool; } diff --git a/storage/locales/bot/ar-SA.json b/storage/locales/bot/ar-SA.json index 67a18bf..facc39d 100644 --- a/storage/locales/bot/ar-SA.json +++ b/storage/locales/bot/ar-SA.json @@ -88,7 +88,9 @@ "normalize": "تبديل تسوية الصوت الديناميكية (مستوى ReplayGain) عبر منصات الموسيقى المختلفة.", "bassboost": "تطبيق تأثير معادل تضخيم الباس بمستويات منخفضة، متوسطة أو قوية.", "speed": "تعديل سرعة تشغيل المقطع الصوتي الحالي (0.5× إلى 2.0×).", - "pitch": "تعديل طبقة الصوت (النغمة) للمقطع الصوتي الحالي (0.5× إلى 2.0×)." + "pitch": "تعديل طبقة الصوت (النغمة) للمقطع الصوتي الحالي (0.5× إلى 2.0×).", + "previous": "تشغيل الأغنية السابقة من سجل التشغيل.", + "replay": "إعادة تشغيل الأغنية الحالية من البداية." }, "options": { "debug": { @@ -1226,6 +1228,21 @@ "reorderedDesc": "تم النقل من المركز **#{{from}}** ➔ **#{{to}}** في قائمة الانتظار.", "nowPlayingNext": "سيعمل الآن كالمسار التالي بعد الأغنية الحالية • {{prefix}}np", "viewUpdatedQueue": "{{prefix}}list لعرض قائمة الانتظار المحدثة" + }, + "previous": { + "noHistory": "لا توجد أغنية سابقة في سجل التشغيل.", + "failed": "تعذر تشغيل الأغنية السابقة.", + "author": "سجل التشغيل • الأغنية السابقة", + "title": "تمت استعادة الأغنية السابقة", + "footer": "سجل التشغيل • متبقي {{count}} أغنية سابقة" + }, + "replay": { + "nothingPlaying": "لا يوجد شيء قيد التشغيل حالياً!", + "live": "لا يمكن إعادة تشغيل البث المباشر أو محطات الراديو.", + "failed": "تعذر إعادة تشغيل الأغنية.", + "author": "إعادة التشغيل • 0:00", + "title": "تمت إعادة تشغيل الأغنية من البداية", + "footer": "Remix Music • تشغيل من البداية (المدة: {{duration}})" } } } diff --git a/storage/locales/bot/ckb.json b/storage/locales/bot/ckb.json index 1153928..002ff0b 100644 --- a/storage/locales/bot/ckb.json +++ b/storage/locales/bot/ckb.json @@ -88,7 +88,9 @@ "normalize": "گۆڕینی یەکسانسازیی دەنگی داینامیکی (ئاستی ReplayGain) لەنێوان سەرچاوەکانی مۆسیقادا.", "bassboost": "بەکاربردنی کاریگەریی ئیكوالایزەری بەرزکردنەوەی باس بە ئاستی نزم، مامناوەند یان بەهێز.", "speed": "دەستکاریکردنی خێرایی لێدانی تراکی ئێستا (0.5× بۆ 2.0×).", - "pitch": "دەستکاریکردنی تۆن و ئاستی دەنگی تراکی ئێستا (0.5× بۆ 2.0×)." + "pitch": "دەستکاریکردنی تۆن و ئاستی دەنگی تراکی ئێستا (0.5× بۆ 2.0×).", + "previous": "لێدانی گۆرانی پێشوو لە مێژووی لێدان.", + "replay": "دووبارە لێدانی گۆرانیی ئێستا لە سەرەتاوە." }, "options": { "debug": { @@ -1226,6 +1228,21 @@ "reorderedDesc": "لە پێگەی **#{{from}}** ➔ **#{{to}}** لە ڕیزبەندی گوازرایەوە.", "nowPlayingNext": "ئێستا دوای گۆرانی ئێستا پەخش دەکرێت • {{prefix}}np", "viewUpdatedQueue": "{{prefix}}list بۆ بینینی ڕیزبەندی نوێکراوە" + }, + "previous": { + "noHistory": "هیچ گۆرانییەکی پێشوو لە مێژووی لێداندا نییە.", + "failed": "لێدانی گۆرانی پێشوو سەرکەوتوو نەبوو.", + "author": "مێژووی لێدان • گۆرانی پێشوو", + "title": "گۆرانی پێشوو گەڕێندرایەوە", + "footer": "مێژووی لێدان • {{count}} گۆرانیی پێشوو ماونەتەوە" + }, + "replay": { + "nothingPlaying": "لە ئێستادا هیچ گۆرانییەک لێنادرێت!", + "live": "ناتوانرێت پەخشی ڕاستەوخۆ یان ڕادیۆ دووبارە بکرێتەوە.", + "failed": "دووبارە لێدانی گۆرانییەکە سەرکەوتوو نەبوو.", + "author": "دووبارە لێدان • 0:00", + "title": "گۆرانییەکە لە سەرەتاوە دووبارە دەستیپێکردەوە", + "footer": "Remix Music • لێدان لە سەرەتاوە (ماوە: {{duration}})" } } } diff --git a/storage/locales/bot/de-DE.json b/storage/locales/bot/de-DE.json index dd4ffdd..9637250 100644 --- a/storage/locales/bot/de-DE.json +++ b/storage/locales/bot/de-DE.json @@ -88,7 +88,9 @@ "normalize": "Dynamische Lautstärkenormalisierung (ReplayGain-Pegel) über verschiedene Musikquellen umschalten.", "bassboost": "Equalizer-Bass-Boost mit Voreinstellungen (niedrig, mittel, stark) anwenden.", "speed": "Wiedergabegeschwindigkeit des aktuellen Tracks anpassen (0.5× bis 2.0×).", - "pitch": "Tonhöhe (Pitch) 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." }, "options": { "debug": { @@ -1226,6 +1228,21 @@ "reorderedDesc": "Von Position **#{{from}}** ➔ **#{{to}}** in der Warteschlange verschoben.", "nowPlayingNext": "Wird als Nächstes nach dem aktuellen Titel abgespielt • {{prefix}}np", "viewUpdatedQueue": "{{prefix}}list um die aktualisierte Warteschlange anzuzeigen" + }, + "previous": { + "noHistory": "Es befindet sich kein vorheriger Titel im Wiedergabeverlauf.", + "failed": "Der vorherige Titel konnte nicht abgespielt werden.", + "author": "Wiedergabeverlauf • Vorheriger Titel", + "title": "Vorheriger Titel wiederhergestellt", + "footer": "Wiedergabeverlauf • Noch {{count}} vorherige(r) Titel verfügbar" + }, + "replay": { + "nothingPlaying": "Derzeit wird nichts abgespielt!", + "live": "Livestreams oder Radiosender können nicht von vorne gestartet werden.", + "failed": "Der Titel konnte nicht erneut abgespielt werden.", + "author": "Wiederholung • 0:00", + "title": "Titel von Anfang an neu gestartet", + "footer": "Remix Music • Wiedergabe vom Beginn (Dauer: {{duration}})" } } } diff --git a/storage/locales/bot/en.json b/storage/locales/bot/en.json index 04f401c..d25cbfd 100644 --- a/storage/locales/bot/en.json +++ b/storage/locales/bot/en.json @@ -88,7 +88,9 @@ "normalize": "Toggle dynamic volume normalization (ReplayGain leveling) across music sources.", "bassboost": "Apply a low, medium, or hard bass boost equalizer effect.", "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×)." + "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." }, "options": { "debug": { @@ -1226,6 +1228,21 @@ "reorderedDesc": "Moved from position **#{{from}}** ➔ **#{{to}}** in the queue.", "nowPlayingNext": "Now playing next after the current song • {{prefix}}np", "viewUpdatedQueue": "{{prefix}}list to view updated queue" + }, + "previous": { + "noHistory": "There is no previous song in playback history.", + "failed": "Failed to play the previous track.", + "author": "Playback History • Previous Track", + "title": "Restored Previous Song", + "footer": "Playback History • {{count}} previous song(s) remaining" + }, + "replay": { + "nothingPlaying": "There is nothing playing at the moment!", + "live": "Cannot replay live streams or radio stations.", + "failed": "Failed to replay the track.", + "author": "Playback Replay • 0:00", + "title": "Restarted Song From Beginning", + "footer": "Remix Music • Playing from start (duration: {{duration}})" } } } diff --git a/storage/locales/bot/pt-BR.json b/storage/locales/bot/pt-BR.json index 64e50fe..e5587d0 100644 --- a/storage/locales/bot/pt-BR.json +++ b/storage/locales/bot/pt-BR.json @@ -88,7 +88,9 @@ "normalize": "Alternar normalização dinâmica de volume (nivelamento ReplayGain) entre diferentes fontes de música.", "bassboost": "Aplicar equalizador de reforço de graves (baixo, médio ou pesado).", "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×)." + "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." }, "options": { "debug": { @@ -1226,6 +1228,21 @@ "reorderedDesc": "Movido da posição **#{{from}}** ➔ **#{{to}}** na fila.", "nowPlayingNext": "Tocará a seguir após a música atual • {{prefix}}np", "viewUpdatedQueue": "{{prefix}}list para ver a fila atualizada" + }, + "previous": { + "noHistory": "Não há nenhuma música anterior no histórico de reprodução.", + "failed": "Falha ao tocar a música anterior.", + "author": "Histórico de Reprodução • Faixa Anterior", + "title": "Música Anterior Restaurada", + "footer": "Histórico de Reprodução • Restam {{count}} música(s) no histórico" + }, + "replay": { + "nothingPlaying": "Não há nada tocando no momento!", + "live": "Não é possível reiniciar transmissões ao vivo ou rádios.", + "failed": "Falha ao reiniciar a faixa.", + "author": "Repetir Faixa • 0:00", + "title": "Música Reiniciada do Início", + "footer": "Remix Music • Tocando do início (duração: {{duration}})" } } } diff --git a/storage/locales/bot/tr.json b/storage/locales/bot/tr.json index 9ec1a6b..280a171 100644 --- a/storage/locales/bot/tr.json +++ b/storage/locales/bot/tr.json @@ -88,7 +88,9 @@ "bassboost": "Düşük, orta veya sert bas güçlendirme ekolayzer efekti uygulayın.", "speed": "Mevcut parçanın oynatma hızını ayarlayın (0.5× ile 2.0× arası).", "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" + "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." }, "options": { "debug": { @@ -1226,6 +1228,21 @@ "reorderedDesc": "Kuyrukta **#{{from}}** ➔ **#{{to}}** konumuna taşındı.", "nowPlayingNext": "Şimdi geçerli şarkıdan sonra çalacak • {{prefix}}np", "viewUpdatedQueue": "Güncellenmiş kuyruğu görmek için {{prefix}}list" + }, + "previous": { + "noHistory": "Oynatma geçmişinde önceki bir şarkı bulunmuyor.", + "failed": "Önceki şarkı çalınamadı.", + "author": "Oynatma Geçmişi • Önceki Şarkı", + "title": "Önceki Şarkı Geri Yüklendi", + "footer": "Oynatma Geçmişi • Kalan {{count}} önceki şarkı" + }, + "replay": { + "nothingPlaying": "Şu anda hiçbir şey çalmıyor!", + "live": "Canlı yayınlar veya radyo istasyonları yeniden başlatılamaz.", + "failed": "Şarkı yeniden başlatılamadı.", + "author": "Yeniden Oynat • 0:00", + "title": "Şarkı Baştan Başlatıldı", + "footer": "Remix Music • Baştan çalınıyor (süre: {{duration}})" } } }