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 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 = {
'commandSize': commandSize,
'ClientTag': clientTag,
'guildSize': guildSize,
'userSize': userSize,
'prefixSize': prefix.length,
'profilePicture': profilePicture,
'clientID': clientID,
'djsVersion': djsVersion,