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";
/** @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) {