forked from Supositware/Haha-Yes
refresh some info and added number of prefix
This commit is contained in:
parent
80db9604ca
commit
de865b66c5
1 changed files with 7 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue