Holana/slash/info.js
2023-04-29 21:59:08 +12:00

53 lines
No EOL
1.7 KiB
JavaScript

const { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js');
module.exports = {
name: 'info',
description: '📚 Check my system info!',
run: async (client, interaction) => {
let ccount = client.channels.cache.size;
let mcount = 0;
client.guilds.cache.forEach((guild) => {
mcount += guild.memberCount
})
const row = new ActionRowBuilder()
.addComponents(
new ButtonBuilder()
.setLabel(`Invite ${client.user.username}`)
.setStyle(ButtonStyle.Link)
.setURL("https://discord.com/api/oauth2/authorize?client_id=973436715819745290&permissions=406881561681&scope=bot%20applications.commands")
.setEmoji('973537545289875486'),
)
let pembed = new EmbedBuilder()
.setAuthor({name: "Holana", iconURL: "https://ellie.gcoms.xyz/Ellise.png" })
.setTitle('Information')
.setColor('#2F3136')
.setTimestamp()
.addFields(
{ name: "\Server", value: `\`\`\`ini\n[ ${client.guilds.cache.size} ]\n\`\`\``, inline: true },
{name: "Users", value: `\`\`\`ini\n[ ${mcount} ]\n\`\`\``, inline: true },
{name: "Channels", value: `\`\`\`ini\n[ ${ccount} ]\n\`\`\``, inline: true}
)
.setDescription(`
**= STATISTICS =**
> **• Discord.js** : v14.7.1
> **• Node** : v18.13.0
**= SYSTEM =**
> **• Hosting** : -
> **• Platform** : Windows
**= CPU =**
> **• Model** : -
> **• Speed** : -
> **• Cores** : -`)
.setFooter({
text: `©️ IVON`,
iconURL: ('https://ellie.gcoms.xyz/Ellise.png')
})
interaction.reply({
embeds: [pembed], components: [row]
});
},
};