Funny
This commit is contained in:
parent
1431419167
commit
4cf9f775ec
5
index.js
5
index.js
|
@ -728,6 +728,7 @@ dcClient.on('ready', async () => {
|
|||
|
||||
});
|
||||
|
||||
if (config.status?.url) {
|
||||
// Uptime Kuma Ping
|
||||
// Calculate ping to Discord API
|
||||
|
||||
|
@ -749,7 +750,7 @@ dcClient.on('ready', async () => {
|
|||
})
|
||||
}, config.status.interval * 1000);
|
||||
const start = Date.now();
|
||||
if (config.status?.url) {
|
||||
|
||||
axios.get("https://discord.com/api/gateway").then((result) => {
|
||||
const latency = Date.now() - start;
|
||||
axios.get(config.status.url + `?status=up&msg=OK&ping=${latency}`).then((result) => {
|
||||
|
@ -760,6 +761,8 @@ dcClient.on('ready', async () => {
|
|||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Start doing SSH stuff
|
||||
sendLog(`${colors.cyan("[INFO]")} Starting SSH connection`);
|
||||
await sshConn.connect({
|
||||
|
|
Loading…
Reference in a new issue