allow anyone to run stats command
This commit is contained in:
parent
1758024c4c
commit
9917ccb523
@ -11,7 +11,7 @@ __**Main Process**__
|
|||||||
**Threads:** {cores}
|
**Threads:** {cores}
|
||||||
**Memory:** {memoryUsed}/{memoryTotal}GB
|
**Memory:** {memoryUsed}/{memoryTotal}GB
|
||||||
**OS Type:** {osType}
|
**OS Type:** {osType}
|
||||||
**System Uptime:** <t:{uptime}:R>
|
**System Uptime:** {uptime}
|
||||||
|
|
||||||
[COMMAND_STATS_MAIN_VALUE]
|
[COMMAND_STATS_MAIN_VALUE]
|
||||||
**Library:** Discord.js
|
**Library:** Discord.js
|
||||||
|
@ -11,7 +11,7 @@ class StatsCommand extends SlashCommand {
|
|||||||
module: 'developer',
|
module: 'developer',
|
||||||
aliases: [ ],
|
aliases: [ ],
|
||||||
description: 'Statistics about the bot',
|
description: 'Statistics about the bot',
|
||||||
restricted: true,
|
// restricted: true,
|
||||||
arguments: [
|
arguments: [
|
||||||
{
|
{
|
||||||
name: 'log',
|
name: 'log',
|
||||||
@ -98,7 +98,7 @@ class StatsCommand extends SlashCommand {
|
|||||||
memoryUsed: (memoryTotal - memoryFree).toFixed(1),
|
memoryUsed: (memoryTotal - memoryFree).toFixed(1),
|
||||||
memoryTotal,
|
memoryTotal,
|
||||||
osType: os.type(),
|
osType: os.type(),
|
||||||
uptime: Math.floor(Date.now()/1000) - os.uptime(),
|
uptime: Util.humanise(Math.floor(Date.now()/1000) - os.uptime()),
|
||||||
hostname: os.hostname()
|
hostname: os.hostname()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user