blob: 1a0602e111ef9a914df0454457aa88b66fff3aee [file] [log] [blame]
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
import generateEmojiEmbed from "../../utils/generateEmojiEmbed.js";
import client from "../../utils/client.js"
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("stats")
.setDescription("Gets the bot's stats")
const callback = (interaction: CommandInteraction) => {
interaction.reply({
embeds: [new generateEmojiEmbed()
.setTitle("Stats")
.setDescription(
`**Servers:** ${client.guilds.cache.size}\n` +
`**Ping:** \`${client.ws.ping*2}ms\``
)
.setStatus("Success")
.setEmoji("GUILD.GRAPHS")
], ephemeral: true
});
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };