From 24a92a3dc1d611a20c23f44e28864ec23bbdc6e6 Mon Sep 17 00:00:00 2001 From: 1computer1 Date: Mon, 20 May 2019 20:47:55 -0400 Subject: [PATCH] Add more info to about --- src/commands/about.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/commands/about.js b/src/commands/about.js index b896e4e..095bb49 100644 --- a/src/commands/about.js +++ b/src/commands/about.js @@ -1,4 +1,5 @@ -const { Command } = require('discord-akairo'); +const { Command, version: akairoVersion } = require('discord-akairo'); +const { version: djsVersion } = require('discord.js'); class AboutCommand extends Command { constructor() { @@ -11,7 +12,15 @@ class AboutCommand extends Command { exec(message) { return message.util.send([ 'Comp_iler is made by 1Computer.', - 'Source code is available at .' + 'Source code is available at .', + '', + `**Guilds**: ${this.client.guilds.size}`, + `**Channels**: ${this.client.channels.size}`, + `**Users**: ${this.client.users.size}`, + '', + `**Memory Usage**: ${(process.memoryUsage().heapUsed / 1024 / 1024).toFixed(2)} MB`, + `**Discord.js**: v${djsVersion}`, + `**Akairo**: v${akairoVersion}` ]); } }