mirror of https://github.com/clickscodes/nucleus
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
903 B
29 lines
903 B
import type { CommandInteraction } from "discord.js";
|
|
import type { SlashCommandSubcommandBuilder } from "@discordjs/builders";
|
|
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
|
|
});
|
|
};
|
|
|
|
const check = () => {
|
|
return true;
|
|
};
|
|
|
|
export { command };
|
|
export { callback };
|
|
export { check };
|