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";
|
||||
|
||||
/** @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) {
|
||||
|
||||
Reference in new issue
Block a user