mirror of
https://github.com/HirziDevs/PteroStats
synced 2026-09-21 07:24:14 +00:00
Update ready.js
This commit is contained in:
+3
-3
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user