From 16d71a22e637ad463bb06dbfaea68d063becae07 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Tue, 24 Nov 2020 17:15:53 +0100 Subject: [PATCH] remove author and expose stats Signed-off-by: loicbersier --- event/listeners/ready.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/event/listeners/ready.js b/event/listeners/ready.js index c8c05250..c287e574 100644 --- a/event/listeners/ready.js +++ b/event/listeners/ready.js @@ -16,6 +16,7 @@ class ReadyListener extends Listener { } async exec() { + console.log(this.client.users.cache.size); let commandSize = this.client.commandHandler.modules.size; let clientTag = this.client.user.tag; let guildSize = this.client.guilds.cache.size; @@ -23,7 +24,7 @@ class ReadyListener extends Listener { let channelSize = this.client.channels.cache.size; let profilePicture = this.client.user.displayAvatarURL(); let clientID = this.client.user.id; - let author = this.client.users.resolve(ownerID).tag; + //let author = this.client.users.resolve(ownerID).tag; // Send stats to the console @@ -57,7 +58,7 @@ class ReadyListener extends Listener { status = status.replace('${prefix}', prefix[0]); client.user.setActivity(`${status} | My prefix is: ${prefix[0]}`, { type: 'PLAYING' }); - } else if (random === 2 && owner.presence.activities != null) { // Bot owner status + } /* else if (random === 2 && owner.presence.activities != null) { // Bot owner status console.log('Status type: \x1b[32mCopying owner status\x1b[0m'); // Get elapsed time from when the activity started let diffMins = 0; @@ -69,7 +70,7 @@ class ReadyListener extends Listener { client.user.setActivity(`${owner.presence.activities[0].name}\nfor ${diffMins} minutes | My prefix is: ${prefix[0]}`, owner.presence.activities[0]); } - } + } */ } @@ -80,6 +81,7 @@ class ReadyListener extends Listener { } // Expose stats + /* if (exposeStats) { const port = 3000; @@ -120,6 +122,7 @@ class ReadyListener extends Listener { }); console.log(`Exposing stats on port ${port}`); } + */ console.log('===========[ READY ]===========');