From 755ae2c8f8decbbfbced24655b846508478b2852 Mon Sep 17 00:00:00 2001 From: Lucas Gabriel <90426410+lucmsilva651@users.noreply.github.com> Date: Sat, 1 Jun 2024 22:58:49 +0000 Subject: [PATCH] Fixed stats --- src/commands/stats.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/stats.js b/src/commands/stats.js index 220cba2..2b0b0d2 100644 --- a/src/commands/stats.js +++ b/src/commands/stats.js @@ -8,7 +8,7 @@ module.exports = function (bot, msg) { function formatUptime(uptime) { const hours = Math.floor(uptime / 3600); const minutes = Math.floor((uptime % 3600) / 60); - const seconds = uptime % 60; + const seconds = Math.floor(uptime % 60); return `${hours}h ${minutes}m ${seconds}s`; } @@ -21,7 +21,7 @@ module.exports = function (bot, msg) { const freeMemory = (os.freemem() / (1024 ** 3)).toFixed(2) + ' GB'; const uptime = formatUptime(os.uptime()); - return `📊 *Server Stats*\n\n` + + return `*Server Stats*\n\n` + `*OS:* ${platform} ${release}\n` + `*CPU:* ${cpuModel} (${cpuCores} cores)\n` + `*RAM:* ${freeMemory} / ${totalMemory}\n` +