44 lines
1.3 KiB
JavaScript
44 lines
1.3 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 = `
|
|
\`\`\`
|
|
*******************************
|
|
* 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)
|
|
.setTitle('Statistics')
|
|
.setDescription(data)
|
|
},
|
|
},
|
|
} |