botinfo.js (2191B)
1 const { EmbedBuilder, version: djsversion } = require("discord.js"); 2 const version = require("../../package.json").version; 3 module.exports = { 4 name: "botinfo", 5 description: "Check the info of the bot", 6 category: "Information", 7 run: async (client, interaction, args, utils) => { 8 const embed = new EmbedBuilder() 9 .setTitle(`NYX - CODM Gunsmith Bot`) 10 .setURL(utils.inviteLink(client.user.id)) 11 .setThumbnail( 12 "https://media.discordapp.net/attachments/896078559293104128/896392631565828146/nyx_logo_transparent.webp" 13 ) 14 .setColor(client.color) 15 .addFields([ 16 { 17 name: `General`, 18 value: ` 19 <:nyx_owner:897418259433943120> Owner ❯ <@452076196419600394> 20 Bot ❯ ${client.user.tag} 21 Bot ID ❯ \`${client.user.id}\` 22 Created on ❯ \`${utils.botDate( 23 new Date(client.user.createdTimestamp) 24 )}\``, 25 inline: true, 26 }, 27 { 28 name: `Bot Stats`, 29 value: ` 30 Servers ❯ ${client.guilds.cache.size.toLocaleString()} 31 Users ❯ ${client.guilds.cache 32 .reduce((a, b) => a + b.memberCount, 0) 33 .toLocaleString()} 34 Channels ❯ \`${client.channels.cache.size.toLocaleString()}\` 35 Commands ❯ \`${client.slashCommands.size}\` 36 `, 37 inline: true, 38 }, 39 { 40 name: `Platform`, 41 value: ` 42 NYX ❯ \`v${version}\` 43 Discord.js ❯ \`v${djsversion}\` 44 Node.js ❯ \`${process.version}\``, 45 }, 46 { 47 name: `**${client.author}**`, 48 value: `**Development Management**\n\u3000Ń1ght#0001\n\u3000Cat drinking a cat#0795\n\u3000mightyful#6536\n\u3000Thunder#2128\n\u3000mobo#9277\n 49 **Research & Documentation**\n\u3000Thunder#2128\n 50 **Website**\n\u3000Chunchunmaru#8570`, 51 }, 52 ]) 53 .setFooter({ 54 text: `Made by ${client.author}`, 55 iconURL: client.user.displayAvatarURL({ dynamic: true }), 56 }) 57 .setTimestamp(); 58 interaction.followUp({ embeds: [embed] }); 59 }, 60 };