2021-09-06 12:38:25 +02:00
|
|
|
|
const { MessageEmbed, version: djsversion } = require("discord.js");
|
2022-03-19 17:45:19 +01:00
|
|
|
|
const version = require("../../package.json").version;
|
2021-09-06 12:38:25 +02:00
|
|
|
|
const { utc } = require("moment");
|
2023-04-18 11:47:47 +02:00
|
|
|
|
const os = require("os");
|
2021-09-06 12:38:25 +02:00
|
|
|
|
module.exports = {
|
|
|
|
|
name: "botinfo",
|
|
|
|
|
description: "Check the info of the bot",
|
|
|
|
|
category: "Information",
|
|
|
|
|
type: "CHAT_INPUT",
|
2023-04-18 11:47:47 +02:00
|
|
|
|
run: async (client, interaction, args, utils) => {
|
|
|
|
|
const core = os.cpus()[0];
|
2021-09-06 12:38:25 +02:00
|
|
|
|
const embed = new MessageEmbed()
|
2021-11-18 18:56:42 +01:00
|
|
|
|
.setTitle(`NYX - CODM Gunsmith Bot`)
|
|
|
|
|
.setURL(
|
|
|
|
|
`https://discord.com/api/oauth2/authorize?client_id=${client.user.id}&permissions=4231314550&scope=bot%20applications.commands`
|
|
|
|
|
)
|
|
|
|
|
.setThumbnail(
|
|
|
|
|
"https://media.discordapp.net/attachments/896078559293104128/896392631565828146/nyx_logo_transparent.webp"
|
2021-09-06 12:38:25 +02:00
|
|
|
|
)
|
|
|
|
|
.setColor(client.color)
|
2021-11-18 18:56:42 +01: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()}\`
|
2023-04-18 11:47:47 +02:00
|
|
|
|
Commands ❯ \`${client.commands.size}\`
|
2021-11-18 18:56:42 +01:00
|
|
|
|
`,
|
|
|
|
|
inline: true,
|
|
|
|
|
}
|
|
|
|
|
)
|
2023-04-18 11:47:47 +02:00
|
|
|
|
.addFields(
|
|
|
|
|
{
|
|
|
|
|
name: `Platform`,
|
|
|
|
|
value: `
|
2021-11-18 18:56:42 +01:00
|
|
|
|
NYX ❯ \`v${version}\`
|
|
|
|
|
Discord.js ❯ \`v${djsversion}\`
|
|
|
|
|
Node.js ❯ \`${process.version}\``,
|
2023-04-18 11:47:47 +02:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: `Hardware`,
|
|
|
|
|
value: `
|
|
|
|
|
Uptime:** ${utils.timer(os.uptime() * 1000, { long: true })}
|
|
|
|
|
Platform:** ${process.platform}
|
|
|
|
|
CPU:**
|
|
|
|
|
\u3000 Cores: ${os.cpus().length}
|
|
|
|
|
\u3000 Model: ${core.model}
|
|
|
|
|
\u3000 Speed: ${core.speed}MHz
|
|
|
|
|
**`,
|
|
|
|
|
inline: true,
|
|
|
|
|
}
|
|
|
|
|
)
|
2021-11-18 18:56:42 +01:00
|
|
|
|
.addFields({
|
|
|
|
|
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\u3000𝔔𝓻𝔦ค𝔁𝔖ค𝔦ӄø#0690\n\u3000Thunder#2128\n
|
|
|
|
|
**Website**\n\u3000Chunchunmaru#8570`,
|
|
|
|
|
})
|
2023-04-18 11:47:47 +02:00
|
|
|
|
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
|
2021-09-06 12:38:25 +02:00
|
|
|
|
.setTimestamp();
|
2021-11-18 18:56:42 +01:00
|
|
|
|
interaction.followUp({ embeds: [embed] });
|
2021-09-06 12:38:25 +02:00
|
|
|
|
},
|
|
|
|
|
};
|