Haha-Yes/commands/utility/stats.js

15 lines
No EOL
540 B
JavaScript

const { Command } = require('discord.js-commando');
module.exports = class MeowCommand extends Command {
constructor(client) {
super(client, {
name: 'stats',
group: 'utility',
memberName: 'stats',
description: 'Show bot stats.',
});
}
async run(message) {
return message.channel.send(`Servers: \`${this.client.guilds.size}\`\nChannels: \`${this.client.channels.size}\`\nUsers: \`${this.client.users.size}\`\nBot uptime: \`${process.uptime()}\``);
}
};