allow anyone to run stats command
This commit is contained in:
parent
1758024c4c
commit
9917ccb523
@ -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
|
||||
|
@ -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()
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user