discord_bot/commands/info-search/botinfo.js

34 lines
1.5 KiB
JavaScript

const db = require("quick.db");
const Discord = require ("discord.js")
const { version } = require('../../package.json');
const ms = require('pretty-ms');
const { version: discordjsVersion } = require('discord.js');
module.exports = {
name: "botinfo",
category: "info",
aliases: ['uptime', 'botstats', 'stats'],
description: 'Check\'s bot\'s status',
run: async (client, message, args, del, member) => {
message.delete();
message.channel.send(new Discord.MessageEmbed()
.setColor('RANDOM')
.setTitle(`${message.author.tag}`)
.setThumbnail(client.user.displayAvatarURL({ dynamic: true }))
.addField('**• Version**', `1.0.0`, true)
.addField(`**• Users**`, `${client.users.cache.size} users`, true)
.addField('**• Servers**', `${client.guilds.cache.size} guilds`, true)
.addField('**• Discord.js**', `13.2.0`, true)
.addField('**• Ping**', `${client.ws.ping}ms`, true)
.addField('**• Commands**', `${client.commands.size} cmds`,true)
.addField('Wichtige Links ','**• [Support](https://difficult-knights.de/index.php?site=ticketcenter)** • **[Website](https://difficult-knights.de)** ** • [Invite Me](https://discord.com/api/oauth2/authorize?client_id=974563800319676446&permissions=8&scope=bot)**')
.setTimestamp()
.setFooter(
`Difficult-Knights BOT`,
client.user.displayAvatarURL()
))
}
};