Update ready.js

This commit is contained in:
Hirzi
2021-07-04 17:21:10 +07:00
committed by GitHub
parent 4e964a060d
commit f2ca114d28
+3 -3
View File
@@ -62,10 +62,10 @@ module.exports = client => {
ping ping
.ping({ hosturl }) .ping({ hosturl })
.then(() => { .then(() => {
db.set("panel", `Panel: ${statusonline}`); db.set("panel", `**Panel**: ${statusonline}`);
}) })
.catch(err => { .catch(err => {
db.set("panel", `Panel: ${statusoffline}`); db.set("panel", `**Panel**: ${statusoffline}`);
}); });
axios(`${hosturl}/api/application/servers`, { axios(`${hosturl}/api/application/servers`, {
method: "GET", method: "GET",
@@ -106,7 +106,7 @@ module.exports = client => {
if (db1 === null) db1 = `${dbname1}: checking status`; if (db1 === null) db1 = `${dbname1}: checking status`;
let panel = `${db.get("panel")}\n\nUsers: ${userCount}\nServers: ${serverCount}`; let panel = `${db.get("panel")}\n\nUsers: ${userCount}\nServers: ${serverCount}`;
if (panel === null) panel = `Panel: checking status\n\nUsers: ${userCount}\nServers: ${serverCount}`; if (panel === null) panel = `**Panel**: checking status\n\nUsers: ${userCount}\nServers: ${serverCount}`;
let nodemessage = `__**Nodes Stats**__\n${mn1}\n\n__**DataBases Stats**__\n${db1}\n\n__**Panel Stats**__\n${panel}`; let nodemessage = `__**Nodes Stats**__\n${mn1}\n\n__**DataBases Stats**__\n${db1}\n\n__**Panel Stats**__\n${panel}`;
let embed = new MessageEmbed() let embed = new MessageEmbed()