From e378121fbe741726484d41fcf50d1f0ab1bfd253 Mon Sep 17 00:00:00 2001 From: Sophie Mondzelewski Date: Tue, 5 Jul 2022 12:28:31 -0500 Subject: [PATCH] Fix tSeconds making SystemUptime be the same as BotUptime --- events/ready.js | 1 + functions/uptime.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/events/ready.js b/events/ready.js index fac68ac..8447da3 100644 --- a/events/ready.js +++ b/events/ready.js @@ -46,6 +46,7 @@ module.exports = { console.log(' / /| | / __ \\/ / __/ ___/ __ \\| |/_/'); console.log(' / ___ |/ / / / / /_/ / / /_/ /> < '); console.log('/_/ |_/_/ /_/_/\\__/_/ \\____/_/|_| '); + console.log(''); console.log(`${config.release}, ${config.build}`); console.log('Bot online. | Anitrox by IDeletedSystem64 | ALL MY CODE KEEPS BLOWING UP!'); // Statuses diff --git a/functions/uptime.js b/functions/uptime.js index b10b8cf..7718eff 100644 --- a/functions/uptime.js +++ b/functions/uptime.js @@ -1,5 +1,5 @@ -module.exports = () => { - const tSeconds = process.uptime(); +module.exports = (uptime) => { + const tSeconds = (uptime / 1000); const tDays = parseInt(tSeconds / 86400); const tHrs = parseInt((tSeconds % 86400) / 3600);