Fix tSeconds making SystemUptime be the same as BotUptime

This commit is contained in:
Sophie Mondzelewski 2022-07-05 12:28:31 -05:00
parent 917d6a8c19
commit e378121fbe
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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);