feat(mywrapped): add personal music recap command with user statistics and rankings

This commit is contained in:
NoLogicAlan committed 2026-11-21 01:21:36 +03:00
1 parent d78af55f10
commit da477ebf03
12 files changed
+512 -8

No files matched your search

+5
View File
@@ -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;