Get stats command to console log the current users stats
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user