refresh some info and added number of prefix

This commit is contained in:
loicbersier 2019-12-08 01:59:24 +01:00
parent 80db9604ca
commit de865b66c5

View file

@ -78,11 +78,18 @@ class ReadyListener extends Listener {
const http = require('http'); const http = require('http');
const requestHandler = (req, res) => { const requestHandler = (req, res) => {
// Refresh some info
commandSize = this.client.commandHandler.modules.size;
guildSize = this.client.guilds.size;
userSize = this.client.users.size;
profilePicture = this.client.user.displayAvatarURL();
let response = { let response = {
'commandSize': commandSize, 'commandSize': commandSize,
'ClientTag': clientTag, 'ClientTag': clientTag,
'guildSize': guildSize, 'guildSize': guildSize,
'userSize': userSize, 'userSize': userSize,
'prefixSize': prefix.length,
'profilePicture': profilePicture, 'profilePicture': profilePicture,
'clientID': clientID, 'clientID': clientID,
'djsVersion': djsVersion, 'djsVersion': djsVersion,