From 04ce02f672edf0971be5f30523987af568fe723a Mon Sep 17 00:00:00 2001 From: NoLogicAlan Date: Fri, 20 Nov 2026 23:59:21 +0300 Subject: [PATCH] feat: add %wrapped global and %top global cross-server statistics --- commands/top.mjs | 52 +++++++++++++++------ commands/wrapped.mjs | 83 ++++++++++++++++++++++++++++++++-- src/music/GuildStats.mjs | 83 ++++++++++++++++++++++++++++++++++ storage/locales/bot/ar-SA.json | 16 +++++-- storage/locales/bot/ckb.json | 16 +++++-- storage/locales/bot/de-DE.json | 16 +++++-- storage/locales/bot/en.json | 16 +++++-- storage/locales/bot/pt-BR.json | 16 +++++-- storage/locales/bot/tr.json | 16 +++++-- storage/locales/bot/zh-CN.json | 16 +++++-- storage/locales/bot/zh-TW.json | 16 +++++-- 11 files changed, 305 insertions(+), 41 deletions(-) diff --git a/commands/top.mjs b/commands/top.mjs index c08c475..55a3020 100644 --- a/commands/top.mjs +++ b/commands/top.mjs @@ -1,6 +1,6 @@ /** * @module commands/top - * @description Display the most played tracks and top artists for the server. + * @description Display the most played tracks and top artists for the server or global network. */ import { CommandBuilder } from "../src/commands/index.mjs"; @@ -18,7 +18,7 @@ export const command = new CommandBuilder() .addTextOption((o) => o .setName("timeframe") - .setDescription("Filter timeframe: week, month, or all.", "options.top.timeframe") + .setDescription("Filter timeframe: week, month, all, or global.", "options.top.timeframe") .setRequired(false) ); @@ -32,27 +32,51 @@ export async function run(message, data) { const guildId = cleanId(message.message?.guildId ?? message.channel?.guildId); const prefix = this.handler.getPrefix(guildId) || "%"; - const rawArg = (data?.get?.("timeframe")?.value ?? "").trim().toLowerCase(); + const rawArg = ( + data?.get?.("timeframe")?.value ?? + (message.message?.content || message.content || "").split(/\s+/)[1] ?? + "" + ).trim().toLowerCase(); + + const isGlobal = rawArg === "global" || rawArg === "network"; let timeframe = "month"; - if (rawArg === "week" || rawArg === "w" || rawArg === "7d") { + if (isGlobal) { + timeframe = "global"; + } else if (rawArg === "week" || rawArg === "w" || rawArg === "7d") { timeframe = "week"; } else if (rawArg === "all" || rawArg === "alltime" || rawArg === "total") { timeframe = "all"; } - const { tracks, topArtist } = GuildStats.getTopTracks(guildId, timeframe, 10); + const { tracks, topArtist } = isGlobal + ? GuildStats.getGlobalTopTracks(10) + : GuildStats.getTopTracks(guildId, timeframe, 10); - const timeframeLabel = timeframe === "week" - ? this.t(message, "responses.top.timeframeWeek") - : (timeframe === "all" ? this.t(message, "responses.top.timeframeAll") : this.t(message, "responses.top.timeframeMonth")); + const authorName = isGlobal + ? `🌐 ${this.t(message, "responses.top.globalAuthor")}` + : `🏆 ${this.t(message, "responses.top.topAuthor")}`; + + const timeframeLabel = isGlobal + ? "Global" + : (timeframe === "week" + ? this.t(message, "responses.top.timeframeWeek") + : (timeframe === "all" ? this.t(message, "responses.top.timeframeAll") : this.t(message, "responses.top.timeframeMonth"))); + + const titleName = isGlobal + ? this.t(message, "responses.top.globalTitle") + : this.t(message, "responses.top.topTitle", { timeframe: timeframeLabel }); + + const footerText = isGlobal + ? this.t(message, "responses.top.globalFooter", { prefix }) + : this.t(message, "responses.top.topFooter", { prefix }); if (!tracks || tracks.length === 0) { const emptyEmbed = new EmbedBuilder() .setColor(getGlobalColor()) - .setAuthor({ name: `🏆 ${this.t(message, "responses.top.topAuthor")}` }) - .setTitle(this.t(message, "responses.top.topTitle", { timeframe: timeframeLabel })) + .setAuthor({ name: authorName }) + .setTitle(titleName) .setDescription(this.t(message, "responses.top.noData", { prefix })) - .setFooter({ text: this.t(message, "responses.top.topFooter", { prefix }) }); + .setFooter({ text: footerText }); return message.reply({ embeds: [emptyEmbed] }); } @@ -73,10 +97,10 @@ export async function run(message, data) { const embed = new EmbedBuilder() .setColor(getGlobalColor()) - .setAuthor({ name: `🏆 ${this.t(message, "responses.top.topAuthor")}` }) - .setTitle(this.t(message, "responses.top.topTitle", { timeframe: timeframeLabel })) + .setAuthor({ name: authorName }) + .setTitle(titleName) .setDescription(desc) - .setFooter({ text: this.t(message, "responses.top.topFooter", { prefix }) }); + .setFooter({ text: footerText }); return message.reply({ embeds: [embed] }); } diff --git a/commands/wrapped.mjs b/commands/wrapped.mjs index 81071e1..b360f11 100644 --- a/commands/wrapped.mjs +++ b/commands/wrapped.mjs @@ -1,6 +1,6 @@ /** * @module commands/wrapped - * @description Generate community music recap and statistics for the server. + * @description Generate community music recap and statistics for the server or global network. */ import { CommandBuilder } from "../src/commands/index.mjs"; @@ -14,17 +14,94 @@ export const command = new CommandBuilder() .setName("wrapped") .setDescription("Generate a community music recap and listening statistics.", "commands.wrapped") .addAliases("recap", "summary") - .setCategory("music"); + .setCategory("music") + .addTextOption((o) => + o + .setName("scope") + .setDescription("Recap scope: server or global.", "options.wrapped.scope") + .setRequired(false) + ); /** * Run handler for the wrapped command. * @param {object} message + * @param {object} [data] * @returns {Promise} */ -export async function run(message) { +export async function run(message, data) { const guildId = cleanId(message.message?.guildId ?? message.channel?.guildId); const prefix = this.handler.getPrefix(guildId) || "%"; + const rawArg = ( + data?.get?.("scope")?.value ?? + (message.message?.content || message.content || "").split(/\s+/)[1] ?? + "" + ).trim().toLowerCase(); + + const isGlobal = rawArg === "global" || rawArg === "all" || rawArg === "network"; + + if (isGlobal) { + const serverCount = this.client?.guilds?.size ?? 1300; + const stats = GuildStats.getGlobalWrapped(serverCount); + + if (!stats) { + const emptyEmbed = new EmbedBuilder() + .setColor(getGlobalColor()) + .setAuthor({ name: `🌐 ${this.t(message, "responses.wrapped.globalAuthor")}` }) + .setTitle(this.t(message, "responses.wrapped.globalTitle")) + .setDescription(this.t(message, "responses.top.noData", { prefix })) + .setFooter({ text: this.t(message, "responses.wrapped.globalFooter", { prefix }) }); + return message.reply({ embeds: [emptyEmbed] }); + } + + const playsLabel = this.t(message, "responses.top.plays"); + const medals = ["🥇", "🥈", "🥉", "4️⃣", "5️⃣"]; + + let topSongsText = ""; + if (stats.topTracks && stats.topTracks.length > 0) { + topSongsText = stats.topTracks + .map((t, i) => `${medals[i] || "•"} **${Utils.truncate(t.title, 35)}** — *${Utils.truncate(t.artist, 25)}* (\`${t.count} ${playsLabel}\`)`) + .join("\n"); + } else { + topSongsText = "_No track history recorded yet._"; + } + + const embed = new EmbedBuilder() + .setColor(getGlobalColor()) + .setAuthor({ name: `🌐 ${this.t(message, "responses.wrapped.globalAuthor")}` }) + .setTitle(this.t(message, "responses.wrapped.globalTitle")) + .addFields( + { + name: `⏱️ ${this.t(message, "responses.wrapped.totalStreamed")}`, + value: `**${stats.totalHours}** hours`, + inline: true, + }, + { + name: `🎵 ${this.t(message, "responses.wrapped.tracksQueued")}`, + value: `**${stats.totalTracks.toLocaleString()}** tracks`, + inline: true, + }, + { + name: `⏰ ${this.t(message, "responses.wrapped.peakHour")}`, + value: `**${stats.peakHour}**`, + inline: true, + }, + { + name: `🌍 ${this.t(message, "responses.wrapped.activeServers")}`, + value: `**${stats.totalGuilds.toLocaleString()}** servers`, + inline: false, + }, + { + name: `🏆 ${this.t(message, "responses.wrapped.topSongs")}`, + value: topSongsText, + inline: false, + } + ) + .setFooter({ text: this.t(message, "responses.wrapped.globalFooter", { prefix }) }); + + return message.reply({ embeds: [embed] }); + } + const stats = GuildStats.getWrapped(guildId); if (!stats) { diff --git a/src/music/GuildStats.mjs b/src/music/GuildStats.mjs index 109178b..b5bd52b 100644 --- a/src/music/GuildStats.mjs +++ b/src/music/GuildStats.mjs @@ -131,6 +131,22 @@ class GuildStatsManager { } this._scheduleSave(guildId); + + if (guildId !== "global") { + const globalData = this._getGuildData("global"); + if (globalData) { + globalData.totalPlays += 1; + globalData.totalDurationMs += durationMs; + globalData.hourly[currentHour] = (globalData.hourly[currentHour] || 0) + 1; + if (!globalData.guilds) globalData.guilds = {}; + globalData.guilds[guildId] = (globalData.guilds[guildId] || 0) + 1; + if (!globalData.songs[songKey]) { + globalData.songs[songKey] = { title, artist, count: 0, durationMs }; + } + globalData.songs[songKey].count += 1; + this._scheduleSave("global"); + } + } } /** @@ -227,6 +243,73 @@ class GuildStatsManager { }; } + /** + * Get global top tracks across all servers. + * @param {number} [limit=10] + * @returns {{tracks: Array, topArtist: {name: string, count: number}|null}} + */ + getGlobalTopTracks(limit = 10) { + const globalData = this._getGuildData("global"); + if (!globalData || globalData.totalPlays === 0) { + return { tracks: [], topArtist: null }; + } + const tracks = Object.values(globalData.songs || {}) + .sort((a, b) => b.count - a.count) + .slice(0, Math.max(1, Math.min(25, limit))); + + const artistMap = {}; + for (const item of Object.values(globalData.songs || {})) { + if (item.artist && item.artist !== "Unknown Artist") { + artistMap[item.artist] = (artistMap[item.artist] || 0) + item.count; + } + } + const sortedArtists = Object.entries(artistMap).sort((a, b) => b[1] - a[1]); + const topArtist = sortedArtists.length > 0 ? { name: sortedArtists[0][0], count: sortedArtists[0][1] } : null; + + return { tracks, topArtist }; + } + + /** + * Get global wrapped recap across all servers. + * @param {number} [fallbackServerCount=0] + * @returns {object|null} + */ + getGlobalWrapped(fallbackServerCount = 0) { + const globalData = this._getGuildData("global"); + if (!globalData || globalData.totalPlays === 0) { + return null; + } + + const totalHours = Math.round((globalData.totalDurationMs / 3_600_000) * 10) / 10; + + let peakHourIndex = 0; + let peakHourCount = 0; + for (let i = 0; i < 24; i++) { + if ((globalData.hourly[i] || 0) > peakHourCount) { + peakHourCount = globalData.hourly[i]; + peakHourIndex = i; + } + } + + const totalGuilds = Math.max( + fallbackServerCount, + Object.keys(globalData.guilds || {}).length, + 1 + ); + + const topTracks = Object.values(globalData.songs || {}) + .sort((a, b) => b.count - a.count) + .slice(0, 5); + + return { + totalHours, + totalTracks: globalData.totalPlays, + peakHour: formatHour(peakHourIndex), + totalGuilds, + topTracks, + }; + } + /** * Schedule a debounced file save for a guild. * @param {string} guildId diff --git a/storage/locales/bot/ar-SA.json b/storage/locales/bot/ar-SA.json index 2dad899..1ddfaa4 100644 --- a/storage/locales/bot/ar-SA.json +++ b/storage/locales/bot/ar-SA.json @@ -208,7 +208,10 @@ "position": "رقم الأغنية في قائمة الانتظار للانتقال إليها." }, "top": { - "timeframe": "تصفية الإطار الزمني: week أو month أو all." + "timeframe": "تصفية الإطار الزمني: week أو month أو all أو global." + }, + "wrapped": { + "scope": "نطاق الملخص: server أو global." } }, "pagination": { @@ -1397,7 +1400,10 @@ "timeframeMonth": "هذا الشهر", "timeframeAll": "كل الأوقات", "topFooter": "تصفية بـ: {{prefix}}top week • {{prefix}}top month • {{prefix}}top all", - "plays": "تشغيلات" + "plays": "تشغيلات", + "globalAuthor": "لوحة المتصدرين العالمية • كل السيرفرات", + "globalTitle": "أكثر الأغاني تشغيلاً عبر كل السيرفرات", + "globalFooter": "تصفية بـ: {{prefix}}top week • {{prefix}}top month • {{prefix}}top all • {{prefix}}top global" }, "wrapped": { "wrappedAuthor": "ملخص موسيقى المجتمع", @@ -1407,7 +1413,11 @@ "peakHour": "ساعة الذروة للاستماع", "topDJ": "أفضل دي جي في المجتمع", "topSongs": "أفضل الأغاني", - "wrappedFooter": "مشغل بواسطة Remix Music • شغل الموسيقى بـ {{prefix}}play" + "wrappedFooter": "مشغل بواسطة Remix Music • شغل الموسيقى بـ {{prefix}}play", + "globalAuthor": "ملخص شبكة ريمكس • كل السيرفرات", + "globalTitle": "شخصية الموسيقى العالمية", + "activeServers": "المجتمعات النشطة", + "globalFooter": "شبكة ريمكس العالمية • اكتب {{prefix}}wrapped لملخص سيرفرك" } } } diff --git a/storage/locales/bot/ckb.json b/storage/locales/bot/ckb.json index f64daf6..d8c3fc0 100644 --- a/storage/locales/bot/ckb.json +++ b/storage/locales/bot/ckb.json @@ -208,7 +208,10 @@ "position": "ژمارەی گۆرانییەکە لە ڕیزبەندی بۆ پەڕینەوە بۆی." }, "top": { - "timeframe": "فلتەرکردنی کات: week، month، یان all." + "timeframe": "فلتەرکردنی کات: week، month، all، یان global." + }, + "wrapped": { + "scope": "مەودای پوختە: server یان global." } }, "pagination": { @@ -1397,7 +1400,10 @@ "timeframeMonth": "ئەم مانگە", "timeframeAll": "هەموو کاتێک", "topFooter": "فلتەر بکە بە: {{prefix}}top week • {{prefix}}top month • {{prefix}}top all", - "plays": "لێدان" + "plays": "لێدان", + "globalAuthor": "ڕیزبەندی جیهانی • هەموو سێرڤەرەکان", + "globalTitle": "زۆرترین گۆرانی لێدراو لە هەموو سێرڤەرەکاندا", + "globalFooter": "فلتەر بکە بە: {{prefix}}top week • {{prefix}}top month • {{prefix}}top all • {{prefix}}top global" }, "wrapped": { "wrappedAuthor": "پوختەی مۆسیقای کۆمەڵگە", @@ -1407,7 +1413,11 @@ "peakHour": "کاتژمێری لوتکەی گوێگرتن", "topDJ": "باشترین دیجیی کۆمەڵگە", "topSongs": "باشترین گۆرانییەکان", - "wrappedFooter": "بەهێزکراوە لەلایەن Remix Music • مۆسیقا لێبدە بە {{prefix}}play" + "wrappedFooter": "بەهێزکراوە لەلایەن Remix Music • مۆسیقا لێبدە بە {{prefix}}play", + "globalAuthor": "پوختەی تۆڕی ریمیکس • هەموو سێرڤەرەکان", + "globalTitle": "کەسایەتی مۆسیقی جیهانی", + "activeServers": "کۆمەڵگە چالاکەکان", + "globalFooter": "تۆڕی جیهانی ریمیکس • بنووسە {{prefix}}wrapped بۆ پوختەی سێرڤەرەکەت" } } } diff --git a/storage/locales/bot/de-DE.json b/storage/locales/bot/de-DE.json index 7a049e5..704baf0 100644 --- a/storage/locales/bot/de-DE.json +++ b/storage/locales/bot/de-DE.json @@ -208,7 +208,10 @@ "position": "Die Nummer des Titels in der Warteschlange, zu dem gesprungen werden soll." }, "top": { - "timeframe": "Zeitraum filtern: week, month oder all." + "timeframe": "Zeitraum filtern: week, month, all oder global." + }, + "wrapped": { + "scope": "Rückblick-Bereich: server oder global." } }, "pagination": { @@ -1397,7 +1400,10 @@ "timeframeMonth": "Dieser Monat", "timeframeAll": "Gesamte Zeit", "topFooter": "Filtern mit: {{prefix}}top week • {{prefix}}top month • {{prefix}}top all", - "plays": "Wiedergaben" + "plays": "Wiedergaben", + "globalAuthor": "Globale Bestenliste • Alle Server", + "globalTitle": "Meistgespielte Songs auf allen Servern", + "globalFooter": "Filtern mit: {{prefix}}top week • {{prefix}}top month • {{prefix}}top all • {{prefix}}top global" }, "wrapped": { "wrappedAuthor": "Community Music Wrapped", @@ -1407,7 +1413,11 @@ "peakHour": "Spitzen-Hörzeit", "topDJ": "Bester Community-DJ", "topSongs": "Top-Songs", - "wrappedFooter": "Bereitgestellt von Remix Music • Spiele Musik mit {{prefix}}play" + "wrappedFooter": "Bereitgestellt von Remix Music • Spiele Musik mit {{prefix}}play", + "globalAuthor": "Remix-Netzwerk Wrapped • Alle Server", + "globalTitle": "Globale Musik-Persönlichkeit", + "activeServers": "Aktive Communities", + "globalFooter": "Remix Globales Netzwerk • Tippe {{prefix}}wrapped für deinen Server-Rückblick" } } } diff --git a/storage/locales/bot/en.json b/storage/locales/bot/en.json index b98d5fd..76c0bad 100644 --- a/storage/locales/bot/en.json +++ b/storage/locales/bot/en.json @@ -208,7 +208,10 @@ "position": "The track number in the queue to jump to." }, "top": { - "timeframe": "Filter timeframe: week, month, or all." + "timeframe": "Filter timeframe: week, month, all, or global." + }, + "wrapped": { + "scope": "Recap scope: server or global." } }, "pagination": { @@ -1397,7 +1400,10 @@ "timeframeMonth": "This Month", "timeframeAll": "All Time", "topFooter": "Filter with: {{prefix}}top week • {{prefix}}top month • {{prefix}}top all", - "plays": "plays" + "plays": "plays", + "globalAuthor": "Global Leaderboard • All Servers", + "globalTitle": "Top Played Tracks Across All Servers", + "globalFooter": "Filter with: {{prefix}}top week • {{prefix}}top month • {{prefix}}top all • {{prefix}}top global" }, "wrapped": { "wrappedAuthor": "Community Music Wrapped", @@ -1407,7 +1413,11 @@ "peakHour": "Peak Listening Hour", "topDJ": "Top Community DJ", "topSongs": "Top Songs", - "wrappedFooter": "Powered by Remix Music • Play music with {{prefix}}play" + "wrappedFooter": "Powered by Remix Music • Play music with {{prefix}}play", + "globalAuthor": "Remix Network Wrapped • All Servers", + "globalTitle": "Global Music Personality", + "activeServers": "Active Communities", + "globalFooter": "Remix Global Network • Type {{prefix}}wrapped for your server's recap" } } } diff --git a/storage/locales/bot/pt-BR.json b/storage/locales/bot/pt-BR.json index 77a599e..b1316fa 100644 --- a/storage/locales/bot/pt-BR.json +++ b/storage/locales/bot/pt-BR.json @@ -208,7 +208,10 @@ "position": "O número da faixa na fila para onde pular." }, "top": { - "timeframe": "Filtrar período: week, month ou all." + "timeframe": "Filtrar período: week, month, all ou global." + }, + "wrapped": { + "scope": "Escopo da retrospectiva: server ou global." } }, "pagination": { @@ -1397,7 +1400,10 @@ "timeframeMonth": "Este Mês", "timeframeAll": "Todo o Período", "topFooter": "Filtrar com: {{prefix}}top week • {{prefix}}top month • {{prefix}}top all", - "plays": "reproduções" + "plays": "reproduções", + "globalAuthor": "Classificação Global • Todos os Servidores", + "globalTitle": "Músicas Mais Tocadas em Todos os Servidores", + "globalFooter": "Filtrar com: {{prefix}}top week • {{prefix}}top month • {{prefix}}top all • {{prefix}}top global" }, "wrapped": { "wrappedAuthor": "Retrospectiva Musical da Comunidade", @@ -1407,7 +1413,11 @@ "peakHour": "Horário de Pico", "topDJ": "Principal DJ da Comunidade", "topSongs": "Melhores Músicas", - "wrappedFooter": "Desenvolvido por Remix Music • Toque música com {{prefix}}play" + "wrappedFooter": "Desenvolvido por Remix Music • Toque música com {{prefix}}play", + "globalAuthor": "Retrospectiva da Rede Remix • Todos os Servidores", + "globalTitle": "Personalidade Musical Global", + "activeServers": "Comunidades Ativas", + "globalFooter": "Rede Global Remix • Digite {{prefix}}wrapped para o resumo do seu servidor" } } } diff --git a/storage/locales/bot/tr.json b/storage/locales/bot/tr.json index 83c2d24..1ba5e3f 100644 --- a/storage/locales/bot/tr.json +++ b/storage/locales/bot/tr.json @@ -208,7 +208,10 @@ "position": "Atlanacak şarkının kuyruktaki sıra numarası." }, "top": { - "timeframe": "Zaman aralığını filtrele: week, month veya all." + "timeframe": "Zaman aralığını filtrele: week, month, all veya global." + }, + "wrapped": { + "scope": "Özet kapsamı: server veya global." } }, "pagination": { @@ -1397,7 +1400,10 @@ "timeframeMonth": "Bu Ay", "timeframeAll": "Tüm Zamanlar", "topFooter": "Filtrele: {{prefix}}top week • {{prefix}}top month • {{prefix}}top all", - "plays": "çalma" + "plays": "çalma", + "globalAuthor": "Küresel Lider Tablosu • Tüm Sunucular", + "globalTitle": "Tüm Sunucularda En Çok Çalınan Şarkılar", + "globalFooter": "Filtrele: {{prefix}}top week • {{prefix}}top month • {{prefix}}top all • {{prefix}}top global" }, "wrapped": { "wrappedAuthor": "Topluluk Müzik Özeti", @@ -1407,7 +1413,11 @@ "peakHour": "En Çok Dinlenen Saat", "topDJ": "En İyi Topluluk DJ'i", "topSongs": "En İyi Şarkılar", - "wrappedFooter": "Remix Music ile güçlendirilmiştir • {{prefix}}play ile müzik çalın" + "wrappedFooter": "Remix Music ile güçlendirilmiştir • {{prefix}}play ile müzik çalın", + "globalAuthor": "Remix Ağı Özeti • Tüm Sunucular", + "globalTitle": "Küresel Müzik Kişiliği", + "activeServers": "Aktif Topluluklar", + "globalFooter": "Remix Küresel Ağı • Sunucunuzun özeti için {{prefix}}wrapped yazın" } } } diff --git a/storage/locales/bot/zh-CN.json b/storage/locales/bot/zh-CN.json index 3cb1f91..00e41e0 100644 --- a/storage/locales/bot/zh-CN.json +++ b/storage/locales/bot/zh-CN.json @@ -208,7 +208,10 @@ "position": "要跳转到的队列曲目序号。" }, "top": { - "timeframe": "筛选时间范围:week、month 或 all。" + "timeframe": "筛选时间范围:week、month、all 或 global。" + }, + "wrapped": { + "scope": "回顾范围:server 或 global。" } }, "pagination": { @@ -1397,7 +1400,10 @@ "timeframeMonth": "本月", "timeframeAll": "全部时间", "topFooter": "筛选方式:{{prefix}}top week • {{prefix}}top month • {{prefix}}top all", - "plays": "次播放" + "plays": "次播放", + "globalAuthor": "全球排行榜 • 所有服务器", + "globalTitle": "所有服务器中最多播放的曲目", + "globalFooter": "筛选方式:{{prefix}}top week • {{prefix}}top month • {{prefix}}top all • {{prefix}}top global" }, "wrapped": { "wrappedAuthor": "社区年度音乐回顾", @@ -1407,7 +1413,11 @@ "peakHour": "最高峰收听时段", "topDJ": "最活跃点歌达人", "topSongs": "最热曲目", - "wrappedFooter": "由 Remix Music 驱动 • 使用 {{prefix}}play 畅享音乐" + "wrappedFooter": "由 Remix Music 驱动 • 使用 {{prefix}}play 畅享音乐", + "globalAuthor": "Remix 全球网络音乐回顾 • 所有服务器", + "globalTitle": "全球音乐个性", + "activeServers": "活跃社区数", + "globalFooter": "Remix 全球网络 • 输入 {{prefix}}wrapped 查看本服务器回顾" } } } diff --git a/storage/locales/bot/zh-TW.json b/storage/locales/bot/zh-TW.json index 9f61848..ac53d01 100644 --- a/storage/locales/bot/zh-TW.json +++ b/storage/locales/bot/zh-TW.json @@ -208,7 +208,10 @@ "position": "要跳轉到的佇列曲目序號。" }, "top": { - "timeframe": "篩選時間範圍:week、month 或 all。" + "timeframe": "篩選時間範圍:week、month、all 或 global。" + }, + "wrapped": { + "scope": "回顧範圍:server 或 global。" } }, "pagination": { @@ -1397,7 +1400,10 @@ "timeframeMonth": "本月", "timeframeAll": "全部時間", "topFooter": "篩選方式:{{prefix}}top week • {{prefix}}top month • {{prefix}}top all", - "plays": "次播放" + "plays": "次播放", + "globalAuthor": "全球排行榜 • 所有伺服器", + "globalTitle": "所有伺服器中最多播放的曲目", + "globalFooter": "篩選方式:{{prefix}}top week • {{prefix}}top month • {{prefix}}top all • {{prefix}}top global" }, "wrapped": { "wrappedAuthor": "社區年度音樂回顧", @@ -1407,7 +1413,11 @@ "peakHour": "最高峰收聽時段", "topDJ": "最活躍點歌達人", "topSongs": "最熱曲目", - "wrappedFooter": "由 Remix Music 驅動 • 使用 {{prefix}}play 暢享音樂" + "wrappedFooter": "由 Remix Music 驅動 • 使用 {{prefix}}play 暢享音樂", + "globalAuthor": "Remix 全球網絡音樂回顧 • 所有伺服器", + "globalTitle": "全球音樂個性", + "activeServers": "活躍社群數", + "globalFooter": "Remix 全球網絡 • 輸入 {{prefix}}wrapped 查看本伺服器回顧" } } }