From 9917ccb5238bde18d1d5da31e8838a39297fdd09 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Tue, 28 Jun 2022 14:02:30 +0300 Subject: [PATCH] allow anyone to run stats command --- src/localization/en_gb/commands/en_gb_developer.lang | 2 +- src/structure/components/commands/developer/Stats.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/localization/en_gb/commands/en_gb_developer.lang b/src/localization/en_gb/commands/en_gb_developer.lang index 7de9f56..febbeaf 100644 --- a/src/localization/en_gb/commands/en_gb_developer.lang +++ b/src/localization/en_gb/commands/en_gb_developer.lang @@ -11,7 +11,7 @@ __**Main Process**__ **Threads:** {cores} **Memory:** {memoryUsed}/{memoryTotal}GB **OS Type:** {osType} -**System Uptime:** +**System Uptime:** {uptime} [COMMAND_STATS_MAIN_VALUE] **Library:** Discord.js diff --git a/src/structure/components/commands/developer/Stats.js b/src/structure/components/commands/developer/Stats.js index d3b3241..1a9be1a 100644 --- a/src/structure/components/commands/developer/Stats.js +++ b/src/structure/components/commands/developer/Stats.js @@ -11,7 +11,7 @@ class StatsCommand extends SlashCommand { module: 'developer', aliases: [ ], description: 'Statistics about the bot', - restricted: true, + // restricted: true, arguments: [ { name: 'log', @@ -98,7 +98,7 @@ class StatsCommand extends SlashCommand { memoryUsed: (memoryTotal - memoryFree).toFixed(1), memoryTotal, osType: os.type(), - uptime: Math.floor(Date.now()/1000) - os.uptime(), + uptime: Util.humanise(Math.floor(Date.now()/1000) - os.uptime()), hostname: os.hostname() };