From fdd22425f95aa03b4e483267da414c60f77f003b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= Date: Sat, 8 Sep 2018 16:10:28 +0200 Subject: [PATCH] Show stats of bot --- commands/owner/stats.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 commands/owner/stats.js diff --git a/commands/owner/stats.js b/commands/owner/stats.js new file mode 100644 index 00000000..58c73ade --- /dev/null +++ b/commands/owner/stats.js @@ -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}`); + } +}; \ No newline at end of file