allow anyone to run stats command

This commit is contained in:
Erik 2022-06-28 14:02:30 +03:00
parent 1758024c4c
commit 9917ccb523
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ __**Main Process**__
**Threads:** {cores}
**Memory:** {memoryUsed}/{memoryTotal}GB
**OS Type:** {osType}
**System Uptime:** <t:{uptime}:R>
**System Uptime:** {uptime}
[COMMAND_STATS_MAIN_VALUE]
**Library:** Discord.js

View File

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