2019-11-26 21:22:24 +00:00
|
|
|
const { version } = require("discord.js");
|
|
|
|
const moment = require("moment");
|
|
|
|
require("moment-duration-format");
|
|
|
|
|
2019-12-19 19:45:09 +00:00
|
|
|
exports.run = (client, message, args, level) => {
|
2019-11-26 21:22:24 +00:00
|
|
|
const duration = moment.duration(client.uptime).format(" D [days], H [hrs], m [mins], s [secs]");
|
|
|
|
message.channel.send(`= STATISTICS =
|
|
|
|
• Mem Usage :: ${(process.memoryUsage().heapUsed / 1024 / 1024).toFixed(2)} MB
|
|
|
|
• Uptime :: ${duration}
|
|
|
|
• Users :: ${client.users.size.toLocaleString()}
|
|
|
|
• Servers :: ${client.guilds.size.toLocaleString()}
|
|
|
|
• Channels :: ${client.channels.size.toLocaleString()}
|
|
|
|
• Discord.js :: v${version}
|
|
|
|
• Node :: ${process.version}`, {code: "asciidoc"});
|
|
|
|
};
|
|
|
|
|
|
|
|
exports.conf = {
|
|
|
|
enabled: true,
|
|
|
|
guildOnly: false,
|
|
|
|
aliases: [],
|
|
|
|
permLevel: "User"
|
|
|
|
};
|
|
|
|
|
|
|
|
exports.help = {
|
|
|
|
name: "stats",
|
2019-12-21 22:18:18 +00:00
|
|
|
category: "Information",
|
2019-11-26 21:22:24 +00:00
|
|
|
description: "Gives some useful bot statistics.",
|
|
|
|
usage: "stats"
|
2019-12-21 22:01:14 +00:00
|
|
|
};
|