debug management
This commit is contained in:
22 files changed
+100
-24
No files matched your search
@@ -0,0 +1,44 @@
|
||||
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)
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user