Show stats of bot

This commit is contained in:
Loïc Bersier 2018-09-08 16:10:28 +02:00
parent a4f8f53a67
commit fdd22425f9

15
commands/owner/stats.js Normal file
View file

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