mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-03 23:36:35 +02:00
33 lines
1.2 KiB
JavaScript
33 lines
1.2 KiB
JavaScript
const { EmbedBuilder } = require('discord.js');
|
|
|
|
module.exports = {
|
|
name: 'botstat',
|
|
aliases: ['botstats'],
|
|
description: 'Affiche les statistiques du bot.',
|
|
emote: '🔍',
|
|
utilisation: 'botstat',
|
|
category: 'utils',
|
|
|
|
async execute(message, args, client) {
|
|
const guilds = client.guilds.cache.size;
|
|
const channels = client.channels.cache.size;
|
|
const users = client.users.cache.size;
|
|
const emojis = client.emojis.cache.size;
|
|
|
|
|
|
const embed = new EmbedBuilder()
|
|
.setColor("#FFFFFF")
|
|
.setTitle(`🔍 statistiques du bot \`${client.user.username}\``)
|
|
.setThumbnail(client.user.displayAvatarURL({dynamic: true}))
|
|
.addFields([
|
|
{ name: '🏰 Total Serveurs', value: `\`${guilds}\``, inline: true },
|
|
{ name: '🆔 Total salons', value: `\`${channels}\``, inline: true },
|
|
{ name: '👨💻 Total Utilisateurs', value: `\`${users}\``, inline: true },
|
|
{ name: '🤖 Total émojis', value: `\`${emojis}\``, inline: true },
|
|
])
|
|
.setTimestamp()
|
|
.setFooter({text: `${client.user.tag} © 2024`, iconURL: client.user.displayAvatarURL({dynamic: true})});
|
|
|
|
message.reply({ embeds: [embed] });
|
|
},
|
|
}; |