remove author and expose stats
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
parent
59bc18fda6
commit
16d71a22e6
1 changed files with 6 additions and 3 deletions
|
@ -16,6 +16,7 @@ class ReadyListener extends Listener {
|
||||||
}
|
}
|
||||||
|
|
||||||
async exec() {
|
async exec() {
|
||||||
|
console.log(this.client.users.cache.size);
|
||||||
let commandSize = this.client.commandHandler.modules.size;
|
let commandSize = this.client.commandHandler.modules.size;
|
||||||
let clientTag = this.client.user.tag;
|
let clientTag = this.client.user.tag;
|
||||||
let guildSize = this.client.guilds.cache.size;
|
let guildSize = this.client.guilds.cache.size;
|
||||||
|
@ -23,7 +24,7 @@ class ReadyListener extends Listener {
|
||||||
let channelSize = this.client.channels.cache.size;
|
let channelSize = this.client.channels.cache.size;
|
||||||
let profilePicture = this.client.user.displayAvatarURL();
|
let profilePicture = this.client.user.displayAvatarURL();
|
||||||
let clientID = this.client.user.id;
|
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
|
// Send stats to the console
|
||||||
|
@ -57,7 +58,7 @@ class ReadyListener extends Listener {
|
||||||
status = status.replace('${prefix}', prefix[0]);
|
status = status.replace('${prefix}', prefix[0]);
|
||||||
|
|
||||||
client.user.setActivity(`${status} | My prefix is: ${prefix[0]}`, { type: 'PLAYING' });
|
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');
|
console.log('Status type: \x1b[32mCopying owner status\x1b[0m');
|
||||||
// Get elapsed time from when the activity started
|
// Get elapsed time from when the activity started
|
||||||
let diffMins = 0;
|
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]);
|
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
|
// Expose stats
|
||||||
|
/*
|
||||||
if (exposeStats) {
|
if (exposeStats) {
|
||||||
const port = 3000;
|
const port = 3000;
|
||||||
|
|
||||||
|
@ -120,6 +122,7 @@ class ReadyListener extends Listener {
|
||||||
});
|
});
|
||||||
console.log(`Exposing stats on port ${port}`);
|
console.log(`Exposing stats on port ${port}`);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
console.log('===========[ READY ]===========');
|
console.log('===========[ READY ]===========');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue