mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
feat(mywrapped): add personal music recap command with user statistics and rankings
This commit is contained in:
1 parent
d78af55f10
commit
da477ebf03
12 files changed
+512
-8
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user