46 lines
1.6 KiB
JavaScript
46 lines
1.6 KiB
JavaScript
const { MessageEmbed } = require('discord.js');
|
|
|
|
module.exports = {
|
|
name: "stats",
|
|
debug: true,
|
|
description: "check bot statistics",
|
|
usage: "",
|
|
permissions: {
|
|
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
|
|
member: [],
|
|
},
|
|
SlashCommand: {
|
|
options: [],
|
|
/**
|
|
*
|
|
* @param {require("../structures/QuarksBot")} client
|
|
* @param {import("discord.js").MessageCreate} message
|
|
* @param {string[]} args
|
|
* @param {*} param3
|
|
*/
|
|
run: async (client, interaction, args, { GuildDB }) => {
|
|
if (GuildDB.customChannelStatus==true&&!GuildDB.allowedChannels.includes(interaction.channel_id)) {
|
|
return interaction.send(`You are not allowed to use the bot in this channel.`);
|
|
}
|
|
|
|
const data = `
|
|
\`\`\`
|
|
\n 𝗤𝘂𝗮𝗿𝗸𝘀𝗕𝗼𝘁 𝗦𝘁𝗮𝘁𝗶𝘀𝘁𝗶𝗰𝘀
|
|
╔══════════════╦══════════════╗
|
|
║ Channels ║${client.padding(client.channels.cache.size)}║
|
|
╠══════════════╬══════════════╣
|
|
║ Servers ║${client.padding(client.guilds.cache.size)}║
|
|
╠══════════════╬══════════════╣
|
|
║ Users ║${client.padding(client.users.cache.size)}║
|
|
╚══════════════╩══════════════╝
|
|
\`\`\`
|
|
`
|
|
|
|
const stats = new MessageEmbed()
|
|
.setColor(client.config.EmbedColor)
|
|
.setDescription(data)
|
|
|
|
return interaction.send({ embeds: [stats] })
|
|
},
|
|
},
|
|
} |