nyx/command/Information/botinfo.js

62 lines
2.1 KiB
JavaScript
Raw Normal View History

2022-10-26 12:38:28 +02:00
const { EmbedBuilder, version: djsversion } = require("discord.js");
const version = require("../../package.json").version;
2021-09-06 12:38:25 +02:00
const { utc } = require("moment");
module.exports = {
name: "botinfo",
description: "Check the info of the bot",
category: "Information",
2023-04-02 14:12:53 +02:00
run: async (client, interaction, args, utils) => {
2022-10-26 12:38:28 +02:00
const embed = new EmbedBuilder()
.setTitle(`NYX - CODM Gunsmith Bot`)
2023-04-02 14:12:53 +02:00
.setURL(utils.inviteLink(client.user.id))
.setThumbnail(
"https://media.discordapp.net/attachments/896078559293104128/896392631565828146/nyx_logo_transparent.webp"
2021-09-06 12:38:25 +02:00
)
.setColor(client.color)
2023-04-02 14:12:53 +02:00
.addFields([
{
name: `General`,
value: `
<:nyx_owner:897418259433943120> Owner <@452076196419600394>
Bot ${client.user.tag}
Bot ID \`${client.user.id}\`
Created on \`${utc(client.user.createdTimestamp).format(
"MMMM Do YYYY"
)}\``,
inline: true,
},
{
name: `Bot Stats`,
value: `
Servers ${client.guilds.cache.size.toLocaleString()}
Users ${client.guilds.cache
.reduce((a, b) => a + b.memberCount, 0)
.toLocaleString()}
Channels \`${client.channels.cache.size.toLocaleString()}\`
Commands \`${client.slashCommands.size}\`
`,
inline: true,
2023-04-02 14:12:53 +02:00
},
{
name: `Platform`,
value: `
NYX \`v${version}\`
Discord.js \`v${djsversion}\`
Node.js \`${process.version}\``,
},
{
name: `**${client.author}**`,
value: `**Development Management**\n\u3000Ń1ght#0001\n\u3000Cat drinking a cat#0795\n\u3000mightyful#6536\n\u3000Thunder#2128\n\u3000mobo#9277\n
**Research & Documentation**\n\u3000Thunder#2128\n
**Website**\n\u3000Chunchunmaru#8570`,
},
])
2022-03-02 15:37:01 +01:00
.setFooter({
text: `Made by ${client.author}`,
2023-04-02 14:12:53 +02:00
iconURL: client.user.displayAvatarURL({ dynamic: true }),
2022-03-02 15:37:01 +01:00
})
2021-09-06 12:38:25 +02:00
.setTimestamp();
interaction.followUp({ embeds: [embed] });
2021-09-06 12:38:25 +02:00
},
};