From da477ebf037a181eaab0fade247f7e7fd2b32073 Mon Sep 17 00:00:00 2001 From: NoLogicAlan Date: Sat, 21 Nov 2026 01:21:36 +0300 Subject: [PATCH] feat(mywrapped): add personal music recap command with user statistics and rankings --- commands/mywrapped.mjs | 180 +++++++++++++++++++++++++++++++++ commands/top.mjs | 5 + commands/wrapped.mjs | 5 + src/music/GuildStats.mjs | 146 ++++++++++++++++++++++++++ storage/locales/bot/ar-SA.json | 23 ++++- storage/locales/bot/ckb.json | 23 ++++- storage/locales/bot/de-DE.json | 23 ++++- storage/locales/bot/en.json | 23 ++++- storage/locales/bot/pt-BR.json | 23 ++++- storage/locales/bot/tr.json | 23 ++++- storage/locales/bot/zh-CN.json | 23 ++++- storage/locales/bot/zh-TW.json | 23 ++++- 12 files changed, 512 insertions(+), 8 deletions(-) create mode 100644 commands/mywrapped.mjs diff --git a/commands/mywrapped.mjs b/commands/mywrapped.mjs new file mode 100644 index 0000000..4449e68 --- /dev/null +++ b/commands/mywrapped.mjs @@ -0,0 +1,180 @@ +/** + * @module commands/mywrapped + * @description View personal listening recap, personal top songs, favorite artist, and server DJ rank. + */ + +import { CommandBuilder } from "../src/commands/index.mjs"; +import { EmbedBuilder } from "@fluxerjs/core"; +import { GuildStats } from "../src/music/GuildStats.mjs"; +import { cleanId, Utils } from "../src/utils/Utils.mjs"; +import { getGlobalColor } from "../src/ui/index.mjs"; + +/** @type {CommandBuilder} */ +export const command = new CommandBuilder() + .setName("mywrapped") + .setDescription("View your personal music listening recap, top tracks, and server DJ rank.", "commands.mywrapped") + .addAliases("myrecap", "personalwrapped", "mytracks", "me", "djstats") + .setCategory("music") + .addTextOption((o) => + o + .setName("target") + .setDescription("The user whose listening recap you want to view.", "options.mywrapped.user") + .setRequired(false) + ); + +/** + * Run handler for the mywrapped command. + * @param {object} message + * @param {object} [data] + * @returns {Promise} + */ +export async function run(message, data) { + const guildId = cleanId(message.message?.guildId ?? message.channel?.guildId); + const prefix = this.handler.getPrefix(guildId) || "%"; + + const rawAuthor = message.message?.author ?? message.author; + const authorId = cleanId(rawAuthor?.id); + + const rawArg = ( + data?.get?.("target")?.value ?? + (message.message?.content || message.content || "") + .trim() + .split(/\s+/) + .slice(1) + .join(" ") ?? + "" + ).trim(); + + let targetId = authorId; + let targetUser = rawAuthor; + + const mentionMatch = rawArg.match(/<@!?(\d+)>/) || rawArg.match(/\b\d{17,20}\b/); + if (mentionMatch && mentionMatch[1]) { + const parsedId = cleanId(mentionMatch[1]); + if (parsedId && parsedId !== authorId) { + targetId = parsedId; + const resolved = this.client?.users?.resolve?.(targetId) ?? message.message?.guild?.members?.resolve?.(targetId)?.user; + if (resolved) { + targetUser = resolved; + } else { + targetUser = { id: targetId, username: `<@${targetId}>` }; + } + } + } + + const isSelf = targetId === authorId; + const username = targetUser?.username ?? (isSelf ? "You" : `<@${targetId}>`); + + let stats = await GuildStats.getUserStats(guildId, targetId); + let isGlobalFallback = false; + + if (!stats) { + stats = await GuildStats.getUserStats("global", targetId); + if (stats) { + isGlobalFallback = true; + } + } + + if (!stats || stats.totalTracks === 0) { + const noDataText = isSelf + ? this.t(message, "responses.mywrapped.noDataSelf", { prefix }) + : this.t(message, "responses.mywrapped.noDataOther", { username, prefix }); + + const emptyEmbed = new EmbedBuilder() + .setColor(getGlobalColor()) + .setAuthor({ + name: isSelf + ? `🎧 ${this.t(message, "responses.mywrapped.authorSelf")}` + : `🎧 ${this.t(message, "responses.mywrapped.authorOther", { username })}`, + }) + .setTitle(isSelf + ? this.t(message, "responses.mywrapped.titleSelf") + : this.t(message, "responses.mywrapped.titleOther", { username })) + .setDescription(noDataText) + .setFooter({ text: this.t(message, "responses.mywrapped.footer", { 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 djRankValue = this.t(message, "responses.mywrapped.djRankValue", { + rank: stats.djRank, + total: stats.totalDjs, + }); + + const fields = [ + { + name: `⏱️ ${this.t(message, "responses.mywrapped.totalStreamed")}`, + value: `**${stats.totalHours}** hours`, + inline: true, + }, + { + name: `🎵 ${this.t(message, "responses.mywrapped.tracksQueued")}`, + value: `**${stats.totalTracks.toLocaleString()}** tracks`, + inline: true, + }, + { + name: `⏰ ${this.t(message, "responses.mywrapped.peakHour")}`, + value: `**${stats.peakHour}**`, + inline: true, + }, + { + name: `👑 ${this.t(message, "responses.mywrapped.djRank")}`, + value: `**${djRankValue}**`, + inline: true, + }, + ]; + + if (stats.topArtist) { + fields.push({ + name: `⭐ ${this.t(message, "responses.mywrapped.topArtist")}`, + value: `**${stats.topArtist.name}** (\`${stats.topArtist.count} ${playsLabel}\`)`, + inline: true, + }); + } + + fields.push({ + name: `🏆 ${this.t(message, "responses.mywrapped.topSongs")}`, + value: topSongsText, + inline: false, + }); + + let footerText = this.t(message, "responses.mywrapped.footer", { prefix }); + if (isGlobalFallback) { + footerText = `${this.t(message, "responses.mywrapped.globalNotice")} • ${footerText}`; + } + + const embed = new EmbedBuilder() + .setColor(getGlobalColor()) + .setAuthor({ + name: isSelf + ? `🎧 ${this.t(message, "responses.mywrapped.authorSelf")}` + : `🎧 ${this.t(message, "responses.mywrapped.authorOther", { username })}`, + }) + .setTitle(isSelf + ? this.t(message, "responses.mywrapped.titleSelf") + : this.t(message, "responses.mywrapped.titleOther", { username })) + .addFields(...fields) + .setFooter({ text: footerText }); + + const avatarUrl = typeof targetUser?.avatarURL === "function" + ? targetUser.avatarURL() + : (targetUser?.avatar ? `https://cdn.discordapp.com/avatars/${targetId}/${targetUser.avatar}.png` : null); + + if (avatarUrl) { + embed.setThumbnail(avatarUrl); + } + + return message.reply({ embeds: [embed] }); +} diff --git a/commands/top.mjs b/commands/top.mjs index 7a494e6..9e0a32e 100644 --- a/commands/top.mjs +++ b/commands/top.mjs @@ -8,6 +8,7 @@ import { EmbedBuilder } from "@fluxerjs/core"; import { GuildStats } from "../src/music/GuildStats.mjs"; import { cleanId, Utils } from "../src/utils/Utils.mjs"; import { getGlobalColor } from "../src/ui/index.mjs"; +import { run as runMyWrapped } from "./mywrapped.mjs"; const PAGE_SIZE = 10; const MAX_TRACKS = 50; @@ -48,6 +49,10 @@ export async function run(message, data) { const tokens = rawArg.split(/\s+/).filter(Boolean); + if (tokens.includes("me") || tokens.includes("self") || tokens.includes("my")) { + return runMyWrapped.call(this, message, data); + } + let isGlobal = false; let timeframe = "month"; let targetPage = 1; diff --git a/commands/wrapped.mjs b/commands/wrapped.mjs index bc1b14d..d84415d 100644 --- a/commands/wrapped.mjs +++ b/commands/wrapped.mjs @@ -8,6 +8,7 @@ import { EmbedBuilder } from "@fluxerjs/core"; import { GuildStats } from "../src/music/GuildStats.mjs"; import { cleanId, Utils } from "../src/utils/Utils.mjs"; import { getGlobalColor } from "../src/ui/index.mjs"; +import { run as runMyWrapped } from "./mywrapped.mjs"; /** @type {CommandBuilder} */ export const command = new CommandBuilder() @@ -38,6 +39,10 @@ export async function run(message, data) { "" ).trim().toLowerCase(); + if (rawArg === "me" || rawArg === "self" || rawArg === "user") { + return runMyWrapped.call(this, message, data); + } + const isGlobal = rawArg === "global" || rawArg === "all" || rawArg === "network"; if (isGlobal) { diff --git a/src/music/GuildStats.mjs b/src/music/GuildStats.mjs index d0ee75a..64e92ff 100644 --- a/src/music/GuildStats.mjs +++ b/src/music/GuildStats.mjs @@ -648,6 +648,152 @@ class GuildStatsManager { }; } + /** + * Get personal listening statistics for a specific user in a guild (or global network). + * @param {string} guildId + * @param {string} userId + * @returns {Promise} + */ + async getUserStats(guildId, userId) { + if (!userId) return null; + + if (this._pool) { + try { + const isGlobalScope = guildId === "global"; + const sumSql = isGlobalScope + ? "SELECT COUNT(*) as totalTracks, COALESCE(SUM(`duration_ms`), 0) as totalDurationMs FROM `guild_track_stats` WHERE `user_id` = ?;" + : "SELECT COUNT(*) as totalTracks, COALESCE(SUM(`duration_ms`), 0) as totalDurationMs FROM `guild_track_stats` WHERE `guild_id` = ? AND `user_id` = ?;"; + const sumParams = isGlobalScope ? [userId] : [guildId, userId]; + + const [sumRows] = await this._pool.execute(sumSql, sumParams); + const totalTracks = Number(sumRows?.[0]?.totalTracks) || 0; + + if (totalTracks > 0) { + const totalDurationMs = Number(sumRows?.[0]?.totalDurationMs) || 0; + const totalHours = Math.round((totalDurationMs / 3_600_000) * 10) / 10; + + const hourSql = isGlobalScope + ? "SELECT `hour_played`, COUNT(*) as count FROM `guild_track_stats` WHERE `user_id` = ? GROUP BY `hour_played` ORDER BY count DESC LIMIT 1;" + : "SELECT `hour_played`, COUNT(*) as count FROM `guild_track_stats` WHERE `guild_id` = ? AND `user_id` = ? GROUP BY `hour_played` ORDER BY count DESC LIMIT 1;"; + const hourParams = isGlobalScope ? [userId] : [guildId, userId]; + + const [hourRows] = await this._pool.execute(hourSql, hourParams); + const peakHour = hourRows?.[0] ? formatHour(hourRows[0].hour_played) : "12:00 PM"; + + const trackSql = isGlobalScope + ? "SELECT `title`, `artist`, COUNT(*) as count, MAX(`duration_ms`) as durationMs FROM `guild_track_stats` WHERE `user_id` = ? GROUP BY `title`, `artist` ORDER BY count DESC LIMIT 5;" + : "SELECT `title`, `artist`, COUNT(*) as count, MAX(`duration_ms`) as durationMs FROM `guild_track_stats` WHERE `guild_id` = ? AND `user_id` = ? GROUP BY `title`, `artist` ORDER BY count DESC LIMIT 5;"; + const trackParams = isGlobalScope ? [userId] : [guildId, userId]; + + const [trackRows] = await this._pool.execute(trackSql, trackParams); + const topTracks = (trackRows || []).map((r) => ({ + title: r.title, + artist: r.artist, + count: Number(r.count) || 0, + durationMs: Number(r.durationMs) || 0, + })); + + const artistMap = {}; + for (const t of topTracks) { + if (t.artist && t.artist !== "Unknown Artist") { + artistMap[t.artist] = (artistMap[t.artist] || 0) + t.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; + + const lbSql = isGlobalScope + ? "SELECT `user_id`, COUNT(*) as plays FROM `guild_track_stats` WHERE `user_id` IS NOT NULL AND `user_id` != 'system' GROUP BY `user_id` ORDER BY plays DESC;" + : "SELECT `user_id`, COUNT(*) as plays FROM `guild_track_stats` WHERE `guild_id` = ? AND `user_id` IS NOT NULL AND `user_id` != 'system' GROUP BY `user_id` ORDER BY plays DESC;"; + const lbParams = isGlobalScope ? [] : [guildId]; + + const [leaderboardRows] = await this._pool.execute(lbSql, lbParams); + let djRank = 1; + let totalDjs = 1; + if (leaderboardRows && leaderboardRows.length > 0) { + totalDjs = leaderboardRows.length; + const idx = leaderboardRows.findIndex((r) => String(r.user_id) === String(userId)); + if (idx !== -1) { + djRank = idx + 1; + } + } + + return { + totalTracks, + totalHours, + peakHour, + topTracks, + topArtist, + djRank, + totalDjs, + }; + } + } catch (err) { + logger.warn("[GuildStats] MySQL getUserStats error:", err?.message); + } + } + + /* Fallback to local memory/file cache */ + const data = this._getGuildData(guildId); + if (!data) return null; + + const totalTracks = Number(data.users?.[userId]) || 0; + if (totalTracks === 0) return null; + + const userTracks = (data.recent || []).filter((r) => String(r.userId) === String(userId)); + let totalDurationMs = 0; + const songMap = {}; + const artistMap = {}; + const hourMap = {}; + + for (const item of userTracks) { + totalDurationMs += Number(item.durationMs) || 0; + const k = `${item.title}:::${item.artist}`; + if (!songMap[k]) { + songMap[k] = { title: item.title, artist: item.artist, count: 0 }; + } + songMap[k].count += 1; + if (item.artist && item.artist !== "Unknown Artist") { + artistMap[item.artist] = (artistMap[item.artist] || 0) + 1; + } + const hr = new Date(item.ts || Date.now()).getHours(); + hourMap[hr] = (hourMap[hr] || 0) + 1; + } + + const totalHours = Math.round((totalDurationMs / 3_600_000) * 10) / 10; + const topTracks = Object.values(songMap) + .sort((a, b) => b.count - a.count) + .slice(0, 5); + + 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; + + let peakHourIndex = 12; + let peakHourCount = 0; + for (const [hr, cnt] of Object.entries(hourMap)) { + if (cnt > peakHourCount) { + peakHourCount = cnt; + peakHourIndex = Number(hr); + } + } + const peakHour = formatHour(peakHourIndex); + + const sortedUsers = Object.entries(data.users || {}).sort((a, b) => b[1] - a[1]); + const totalDjs = Math.max(1, sortedUsers.length); + const userIndex = sortedUsers.findIndex((u) => String(u[0]) === String(userId)); + const djRank = userIndex !== -1 ? userIndex + 1 : 1; + + return { + totalTracks, + totalHours, + peakHour, + topTracks, + topArtist, + djRank, + totalDjs, + }; + } + /** * 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 b6e2c42..92a3c12 100644 --- a/storage/locales/bot/ar-SA.json +++ b/storage/locales/bot/ar-SA.json @@ -107,7 +107,8 @@ "skipto": "التخطي مباشرة إلى أغنية معينة في قائمة الانتظار.", "statustest": "اختبار تحديثات قناة الحالة العامة والبطاقات المباشرة والحوادث.", "top": "عرض أكثر الأغاني والفنانين تشغيلاً في هذا السيرفر.", - "wrapped": "إنشاء ملخص موسيقى المجتمع وإحصائيات الاستماع." + "wrapped": "إنشاء ملخص موسيقى المجتمع وإحصائيات الاستماع.", + "mywrapped": "عرض ملخص الموسيقى الشخصي الخاص بك، وأفضل أغانيك، ورتبتك كـ DJ في السيرفر." }, "options": { "debug": { @@ -213,6 +214,9 @@ }, "wrapped": { "scope": "نطاق الملخص: server أو global." + }, + "mywrapped": { + "user": "المستخدم الذي تريد عرض ملخصه الموسيقي." } }, "pagination": { @@ -1421,6 +1425,23 @@ "globalTitle": "شخصية الموسيقى العالمية", "activeServers": "المجتمعات النشطة", "globalFooter": "شبكة ريمكس العالمية • اكتب {{prefix}}wrapped لملخص سيرفرك" + }, + "mywrapped": { + "authorSelf": "ملخص الموسيقى الشخصي الخاص بك", + "authorOther": "ملخص الموسيقى الشخصي • {{username}}", + "titleSelf": "هويتك الموسيقية في السيرفر", + "titleOther": "الهوية الموسيقية لـ {{username}}", + "totalStreamed": "إجمالي وقت الاستماع", + "tracksQueued": "الأغاني المشغلة", + "peakHour": "وقت الذروة في الاستماع", + "djRank": "رتبة DJ في المجتمع", + "djRankValue": "المركز #{{rank}} من أصل {{total}} DJs", + "topArtist": "الفنان المفضل", + "topSongs": "أفضل أغانيك الشخصية", + "noDataSelf": "لم تقم بتشغيل أي أغانٍ في هذا السيرفر بعد. ابدأ التشغيل بـ {{prefix}}play <أغنية>!", + "noDataOther": "لم يقم {{username}} بتشغيل أي أغانٍ في هذا السيرفر بعد.", + "globalNotice": "🌐 إحصائيات عالمية • لم يتم تشغيل أغانٍ في هذا السيرفر بعد", + "footer": "مشغل بواسطة Remix Music • {{prefix}}top لمخططات السيرفر" } } } diff --git a/storage/locales/bot/ckb.json b/storage/locales/bot/ckb.json index c9fe405..41b6aeb 100644 --- a/storage/locales/bot/ckb.json +++ b/storage/locales/bot/ckb.json @@ -107,7 +107,8 @@ "skipto": "پەڕینەوەی ڕاستەوخۆ بۆ گۆرانییەکی دیاریکراو لە ڕیزبەندی.", "statustest": "تاقیکردنەوەی نوێکردنەوەکانی کەناڵی دۆخی گشتی، کارتی ڕاستەوخۆ و ڕووداوەکان.", "top": "بینینی زۆرترین گۆرانییە لێدراوەکان و هونەرمەندە سەرەکییەکان لەم سێرڤەرەدا.", - "wrapped": "دروستکردنی پوختەی مۆسیقای کۆمەڵگە و ئامارەکانی گوێگرتن." + "wrapped": "دروستکردنی پوختەی مۆسیقای کۆمەڵگە و ئامارەکانی گوێگرتن.", + "mywrapped": "پوختەی گوێگرتنی مۆسیقای تایبەتی خۆت، باشترین گۆرانییەکان، و پلەی DJی سێرڤەر ببینە." }, "options": { "debug": { @@ -213,6 +214,9 @@ }, "wrapped": { "scope": "مەودای پوختە: server یان global." + }, + "mywrapped": { + "user": "ئەو بەکارهێنەرەی دەتەوێت پوختەی مۆسیقاکەی ببینیت." } }, "pagination": { @@ -1421,6 +1425,23 @@ "globalTitle": "کەسایەتی مۆسیقی جیهانی", "activeServers": "کۆمەڵگە چالاکەکان", "globalFooter": "تۆڕی جیهانی ریمیکس • بنووسە {{prefix}}wrapped بۆ پوختەی سێرڤەرەکەت" + }, + "mywrapped": { + "authorSelf": "پوختەی مۆسیقای تایبەتی تۆ", + "authorOther": "پوختەی مۆسیقای تایبەتی • {{username}}", + "titleSelf": "ناسنامەی گوێگرتنی تۆ لە سێرڤەر", + "titleOther": "ناسنامەی گوێگرتنی {{username}} لە سێرڤەر", + "totalStreamed": "کۆی کاتی پەخشکراو", + "tracksQueued": "گۆرانییە داواکراوەکان", + "peakHour": "کاتی لوتکەی گوێگرتن", + "djRank": "پلەی DJ لە کۆمەڵگە", + "djRankValue": "پلەی #{{rank}} لە {{total}} DJ", + "topArtist": "هونەرمەندی دڵخواز", + "topSongs": "باشترین گۆرانییە تایبەتییەکان", + "noDataSelf": "هێشتا هیچ گۆرانییەکت لەم سێرڤەرە داوا نەکردووە. بە {{prefix}}play <گۆرانی> دەست پێبکە!", + "noDataOther": "{{username}} تا ئێستا هیچ گۆرانییەکی لەم سێرڤەرە داوا نەکردووە.", + "globalNotice": "🌐 ئاماری جیهانی • تا ئێستا هیچ گۆرانییەک لەم سێرڤەرە لێنەدراوە", + "footer": "پشتیوانیکراوە لەلایەن Remix Music • {{prefix}}top بۆ ڕیزبەندیی سێرڤەر" } } } diff --git a/storage/locales/bot/de-DE.json b/storage/locales/bot/de-DE.json index bdef0b3..e4eddfc 100644 --- a/storage/locales/bot/de-DE.json +++ b/storage/locales/bot/de-DE.json @@ -107,7 +107,8 @@ "skipto": "Direkt zu einem bestimmten Titel in der Warteschlange springen.", "statustest": "Öffentliche Statuskanal-Aktualisierungen, Live-Karten und Vorfälle testen.", "top": "Zeige die meistgespielten Songs und Top-Künstler dieses Servers an.", - "wrapped": "Erstelle einen Community-Musikrückblick und Hörstatistiken." + "wrapped": "Erstelle einen Community-Musikrückblick und Hörstatistiken.", + "mywrapped": "Sieh dir deinen persönlichen Musik-Rückblick, Top-Tracks und Server-DJ-Rang an." }, "options": { "debug": { @@ -213,6 +214,9 @@ }, "wrapped": { "scope": "Rückblick-Bereich: server oder global." + }, + "mywrapped": { + "user": "Der Benutzer, dessen Musik-Rückblick du sehen möchtest." } }, "pagination": { @@ -1421,6 +1425,23 @@ "globalTitle": "Globale Musik-Persönlichkeit", "activeServers": "Aktive Communities", "globalFooter": "Remix Globales Netzwerk • Tippe {{prefix}}wrapped für deinen Server-Rückblick" + }, + "mywrapped": { + "authorSelf": "Dein persönlicher Musik-Rückblick", + "authorOther": "Persönlicher Musik-Rückblick • {{username}}", + "titleSelf": "Deine Server-Höridentität", + "titleOther": "Server-Höridentität von {{username}}", + "totalStreamed": "Gesamte Streamingzeit", + "tracksQueued": "Gespielte Tracks", + "peakHour": "Aktivste Hörzeit", + "djRank": "Community-DJ-Rang", + "djRankValue": "Platz #{{rank}} von {{total}} DJs", + "topArtist": "Lieblingskünstler", + "topSongs": "Persönliche Top-Songs", + "noDataSelf": "Du hast auf diesem Server noch keine Songs abgespielt. Starte mit {{prefix}}play !", + "noDataOther": "{{username}} hat auf diesem Server noch keine Songs abgespielt.", + "globalNotice": "🌐 Globale Statistiken • Noch keine Songs auf diesem Server", + "footer": "Unterstützt von Remix Music • {{prefix}}top für Server-Charts" } } } diff --git a/storage/locales/bot/en.json b/storage/locales/bot/en.json index e248047..dd654dc 100644 --- a/storage/locales/bot/en.json +++ b/storage/locales/bot/en.json @@ -107,7 +107,8 @@ "skipto": "Skip directly to a specific track in the queue.", "statustest": "Test public status channel updates, live cards, and incidents.", "top": "View the most played songs and top artists in this server.", - "wrapped": "Generate a community music recap and listening statistics." + "wrapped": "Generate a community music recap and listening statistics.", + "mywrapped": "View your personal music listening recap, top tracks, and server DJ rank." }, "options": { "debug": { @@ -213,6 +214,9 @@ }, "wrapped": { "scope": "Recap scope: server or global." + }, + "mywrapped": { + "user": "The user whose listening recap you want to view." } }, "pagination": { @@ -1421,6 +1425,23 @@ "globalTitle": "Global Music Personality", "activeServers": "Active Communities", "globalFooter": "Remix Global Network • Type {{prefix}}wrapped for your server's recap" + }, + "mywrapped": { + "authorSelf": "Your Personal Music Recap", + "authorOther": "Personal Music Recap • {{username}}", + "titleSelf": "Your Server Listening Identity", + "titleOther": "{{username}}'s Server Listening Identity", + "totalStreamed": "Total Streamed", + "tracksQueued": "Tracks Queued", + "peakHour": "Peak Listening Time", + "djRank": "Community DJ Rank", + "djRankValue": "#{{rank}} of {{total}} DJs", + "topArtist": "Favorite Artist", + "topSongs": "Personal Top Songs", + "noDataSelf": "You haven't queued any songs in this server yet. Start playing with {{prefix}}play !", + "noDataOther": "{{username}} hasn't queued any songs in this server yet.", + "globalNotice": "🌐 Global Stats • No songs queued on this server yet", + "footer": "Powered by Remix Music • {{prefix}}top for server charts" } } } diff --git a/storage/locales/bot/pt-BR.json b/storage/locales/bot/pt-BR.json index a64c3e4..d5dce23 100644 --- a/storage/locales/bot/pt-BR.json +++ b/storage/locales/bot/pt-BR.json @@ -107,7 +107,8 @@ "skipto": "Pular diretamente para uma faixa específica na fila.", "statustest": "Testar atualizações do canal de status público, cartões ao vivo e incidentes.", "top": "Veja as músicas e os artistas mais tocados neste servidor.", - "wrapped": "Gere uma retrospectiva musical e estatísticas da comunidade." + "wrapped": "Gere uma retrospectiva musical e estatísticas da comunidade.", + "mywrapped": "Veja sua retrospectiva musical pessoal, melhores faixas e classificação de DJ no servidor." }, "options": { "debug": { @@ -213,6 +214,9 @@ }, "wrapped": { "scope": "Escopo da retrospectiva: server ou global." + }, + "mywrapped": { + "user": "O usuário cuja retrospectiva musical você deseja ver." } }, "pagination": { @@ -1421,6 +1425,23 @@ "globalTitle": "Personalidade Musical Global", "activeServers": "Comunidades Ativas", "globalFooter": "Rede Global Remix • Digite {{prefix}}wrapped para o resumo do seu servidor" + }, + "mywrapped": { + "authorSelf": "Sua Retrospectiva Musical Pessoal", + "authorOther": "Retrospectiva Musical Pessoal • {{username}}", + "titleSelf": "Sua Identidade Musical no Servidor", + "titleOther": "Identidade Musical de {{username}} no Servidor", + "totalStreamed": "Total Transmitido", + "tracksQueued": "Faixas na Fila", + "peakHour": "Horário de Pico", + "djRank": "Classificação de DJ da Comunidade", + "djRankValue": "Top #{{rank}} de {{total}} DJs", + "topArtist": "Artista Favorito", + "topSongs": "Músicas Mais Tocadas", + "noDataSelf": "Você ainda não colocou músicas na fila neste servidor. Comece com {{prefix}}play !", + "noDataOther": "{{username}} ainda não colocou músicas na fila neste servidor.", + "globalNotice": "🌐 Estatísticas Globais • Nenhuma música tocada neste servidor ainda", + "footer": "Desenvolvido por Remix Music • {{prefix}}top para paradas do servidor" } } } diff --git a/storage/locales/bot/tr.json b/storage/locales/bot/tr.json index 632821e..cd936bf 100644 --- a/storage/locales/bot/tr.json +++ b/storage/locales/bot/tr.json @@ -107,7 +107,8 @@ "skipto": "Kuyruktaki belirli bir şarkıya doğrudan atla.", "statustest": "Herkese açık durum kanalı güncellemelerini, canlı kartları ve olayları test edin.", "top": "Bu sunucuda en çok çalınan şarkıları ve en popüler sanatçıları görüntüleyin.", - "wrapped": "Bir topluluk müzik özeti ve dinleme istatistikleri oluşturun." + "wrapped": "Bir topluluk müzik özeti ve dinleme istatistikleri oluşturun.", + "mywrapped": "Kişisel müzik özetinizi, en çok dinlenen parçalarınızı ve sunucu DJ sıralamanızı görüntüleyin." }, "options": { "debug": { @@ -213,6 +214,9 @@ }, "wrapped": { "scope": "Özet kapsamı: server veya global." + }, + "mywrapped": { + "user": "Müzik özetini görüntülemek istediğiniz kullanıcı." } }, "pagination": { @@ -1421,6 +1425,23 @@ "globalTitle": "Küresel Müzik Kişiliği", "activeServers": "Aktif Topluluklar", "globalFooter": "Remix Küresel Ağı • Sunucunuzun özeti için {{prefix}}wrapped yazın" + }, + "mywrapped": { + "authorSelf": "Kişisel Müzik Özetiniz", + "authorOther": "Kişisel Müzik Özeti • {{username}}", + "titleSelf": "Sunucu Dinleme Kimliğiniz", + "titleOther": "{{username}} Kullanıcısının Sunucu Dinleme Kimliği", + "totalStreamed": "Toplam Yayınlanan", + "tracksQueued": "Sıraya Eklenen Parçalar", + "peakHour": "En Çok Dinlenen Saat", + "djRank": "Topluluk DJ Sıralaması", + "djRankValue": "{{total}} DJ arasından #{{rank}}.", + "topArtist": "En Sevilen Sanatçı", + "topSongs": "Kişisel En İyi Şarkılar", + "noDataSelf": "Bu sunucuda henüz şarkı çalmadınız. {{prefix}}play <şarkı> ile başlayın!", + "noDataOther": "{{username}} bu sunucuda henüz şarkı çalmadı.", + "globalNotice": "🌐 Küresel İstatistikler • Bu sunucuda henüz şarkı çalınmadı", + "footer": "Remix Music tarafından desteklenmektedir • Sunucu listeleri için {{prefix}}top" } } } diff --git a/storage/locales/bot/zh-CN.json b/storage/locales/bot/zh-CN.json index 7228607..2a5a85e 100644 --- a/storage/locales/bot/zh-CN.json +++ b/storage/locales/bot/zh-CN.json @@ -107,7 +107,8 @@ "skipto": "直接跳转到队列中的指定曲目播放。", "statustest": "测试公开状态频道更新、实时卡片和事件报告。", "top": "查看此服务器中播放次数最多的歌曲和热门艺术家。", - "wrapped": "生成社区音乐回顾和收听统计数据。" + "wrapped": "生成社区音乐回顾和收听统计数据。", + "mywrapped": "查看您的个人音乐回顾、最爱曲目和服务器 DJ 排名。" }, "options": { "debug": { @@ -213,6 +214,9 @@ }, "wrapped": { "scope": "回顾范围:server 或 global。" + }, + "mywrapped": { + "user": "要查看其音乐回顾的用户。" } }, "pagination": { @@ -1421,6 +1425,23 @@ "globalTitle": "全球音乐个性", "activeServers": "活跃社区数", "globalFooter": "Remix 全球网络 • 输入 {{prefix}}wrapped 查看本服务器回顾" + }, + "mywrapped": { + "authorSelf": "您的个人音乐回顾", + "authorOther": "个人音乐回顾 • {{username}}", + "titleSelf": "您的服务器听歌身份", + "titleOther": "{{username}} 的服务器听歌身份", + "totalStreamed": "总播放时长", + "tracksQueued": "点播曲目数", + "peakHour": "听歌高峰时段", + "djRank": "社区 DJ 排名", + "djRankValue": "第 #{{rank}} 名 (共 {{total}} 位 DJ)", + "topArtist": "最爱歌手", + "topSongs": "个人热门单曲", + "noDataSelf": "您在此服务器上尚未播放过歌曲。使用 {{prefix}}play <歌曲> 开始点歌!", + "noDataOther": "{{username}} 在此服务器上尚未播放过歌曲。", + "globalNotice": "🌐 全球统计 • 此服务器上尚未播放过歌曲", + "footer": "由 Remix Music 提供支持 • 输入 {{prefix}}top 查看服务器排行榜" } } } diff --git a/storage/locales/bot/zh-TW.json b/storage/locales/bot/zh-TW.json index fe595e8..074e934 100644 --- a/storage/locales/bot/zh-TW.json +++ b/storage/locales/bot/zh-TW.json @@ -107,7 +107,8 @@ "skipto": "直接跳轉至佇列中的指定曲目播放。", "statustest": "測試公開狀態頻道更新、即時卡片與事件報告。", "top": "檢視此伺服器中播放次數最多的歌曲和熱門演出者。", - "wrapped": "產生社群音樂回顧和收聽統計資料。" + "wrapped": "產生社群音樂回顧和收聽統計資料。", + "mywrapped": "查看您的個人音樂回顧、最愛曲目和伺服器 DJ 排名。" }, "options": { "debug": { @@ -213,6 +214,9 @@ }, "wrapped": { "scope": "回顧範圍:server 或 global。" + }, + "mywrapped": { + "user": "要查看其音樂回顧的使用者。" } }, "pagination": { @@ -1421,6 +1425,23 @@ "globalTitle": "全球音樂個性", "activeServers": "活躍社群數", "globalFooter": "Remix 全球網絡 • 輸入 {{prefix}}wrapped 查看本伺服器回顧" + }, + "mywrapped": { + "authorSelf": "您的個人音樂回顧", + "authorOther": "個人音樂回顧 • {{username}}", + "titleSelf": "您的伺服器聽歌身分", + "titleOther": "{{username}} 的伺服器聽歌身分", + "totalStreamed": "總播放時長", + "tracksQueued": "點播曲目數", + "peakHour": "聽歌高峰時段", + "djRank": "社群 DJ 排名", + "djRankValue": "第 #{{rank}} 名 (共 {{total}} 位 DJ)", + "topArtist": "最愛歌手", + "topSongs": "個人熱門單曲", + "noDataSelf": "您在此伺服器上尚未播放過歌曲。使用 {{prefix}}play <歌曲> 開始點歌!", + "noDataOther": "{{username}} 在此伺服器上尚未播放過歌曲。", + "globalNotice": "🌐 全球統計 • 此伺服器上尚未播放過歌曲", + "footer": "由 Remix Music 提供支援 • 輸入 {{prefix}}top 查看伺服器排行榜" } } }