From 981858e9f6f00956c87194e0b0ade86aff924291 Mon Sep 17 00:00:00 2001 From: Hirzi <64255651+HirziDevs@users.noreply.github.com> Date: Sun, 4 Jul 2021 15:55:09 +0700 Subject: [PATCH] Update ready.js --- events/ready.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/events/ready.js b/events/ready.js index 990c7dc..c989dbc 100644 --- a/events/ready.js +++ b/events/ready.js @@ -67,18 +67,18 @@ module.exports = client => { .catch(err => { db.set("panel", `Panel: ${statusoffline}`); }); - let servers = axios.get(this.panel + '/api/application/servers', { + let servers = axios.get(hosturl + '/api/application/servers', { headers: { 'authorization': 'Bearer ' + adminapikey } }); - let serverCount = servers['data']['meta']['pagination']['total']; - let users = axios.get(this.panel + '/api/application/users', { + let serverCount = servers.total + let users = axios.get(hosturl + '/api/application/users', { headers: { 'authorization': 'Bearer ' + adminapikey } }); - let userCount = users['data']['meta']['pagination']['total']; + let userCount = users.total //Embed Message let mn1 = db.get("mn1");