blob: 19c094973aac4f64a55b293ac7dcc1afd133ab82 [file] [log] [blame]
import type { CommandInteraction } from "discord.js";
import type { SlashCommandSubcommandBuilder } from "discord.js";
import EmojiEmbed 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 = async (interaction: CommandInteraction): Promise<void> => {
interaction.reply({
embeds: [
new EmojiEmbed()
.setTitle("Stats")
.setDescription(`**Servers:** ${client.guilds.cache.size}\n` + `**Ping:** \`${client.ws.ping * 2}ms\``)
.setStatus("Success")
.setEmoji("SETTINGS.STATS.GREEN")
],
ephemeral: true
});
};
export { command };
export { callback };