Get stats command to console log the current users stats

This commit is contained in:
Dominic Ferrando
2026-08-15 16:59:50 -04:00
parent a4e7060538
commit 4d7581620f
3 changed files with 19 additions and 8 deletions
+4 -1
View File
@@ -1,10 +1,13 @@
import type { Message } from "discord.js";
import type { Command } from "../service";
import { api } from "../../../util";
export default {
name: "stats",
description: "View your fitness statistics!",
execute: async (message: Message) => {
console.log("Stats executed");
const res = await api.accounts({ id: `@${message.author.id}` }).stats.get();
const stats = res.data;
console.log(stats);
}
} as Command;