summaryrefslogtreecommitdiff
path: root/src/commands/utility/memorystats.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/utility/memorystats.ts')
-rw-r--r--src/commands/utility/memorystats.ts34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/commands/utility/memorystats.ts b/src/commands/utility/memorystats.ts
deleted file mode 100644
index 0729fc5..0000000
--- a/src/commands/utility/memorystats.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-import { Command, CommandoMessage } from 'discord.js-commando';
-
-module.exports = class MemoryStatsUtility extends Command {
- constructor(client) {
- super(client, {
- name: 'memorystats',
- aliases: [
- 'memstats',
- 'mem-stats',
- 'memory-stats',
- 'memorystats',
- 'memstat',
- 'mem-stat',
- 'memory-stat',
- 'memorystat'
- ],
- group: 'utility',
- memberName: 'memorystats',
- description: 'Checks the full, current, approximate memory usage statistics of the bot\'s Node.js process.',
- userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
- clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY']
- });
- }
- run(msg: CommandoMessage) {
- const used = process.memoryUsage();
- msg.reply(`The full, current, approximate memory usage statistics are currentaly;
-\`\`\`js
-rss: ${Math.round(used.rss / 1024 / 1024 * 100) / 100} MBs
-heapTotal: ${Math.round(used.heapTotal / 1024 / 1024 * 100) / 100} MBs
-heapUsed: ${Math.round(used.heapUsed / 1024 / 1024 * 100) / 100} MBs
-external: ${Math.round(used.external / 1024 / 1024 * 100) / 100} MBs
-\`\`\``)
- }
-}; \ No newline at end of file