Skip to content

Commit c1b22f1

Browse files
Add about command (mostly finished)
1 parent 4768f1c commit c1b22f1

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

src/app/cmds/General/about.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
module.exports = {
2+
name: "about",
3+
description: "Get info about me, ${app.client.user.tag}!",
4+
guildOnly: false,
5+
authorizedGuilds: [],
6+
hidden: false,
7+
permissions: ["DEFAULT"],
8+
cooldown: 2,
9+
aliases: ["botinfo", "aboutme"],
10+
syntax: [],
11+
execute: async(app, message, args) => {
12+
var si = require('systeminformation');
13+
app.functions.msgHandler(message, {
14+
embeds: [{
15+
title: app.config.system.emotes.information + ` All about your favorite bot, **${app.client.user.tag}**!`,
16+
color: app.config.system.embedColors.blue,
17+
thumbnail: { url: app.client.user.displayAvatarURL({ format: 'png', dynamic: true, size: 1024 }) },
18+
fields: [
19+
{ name: "Bot Information", value: "** **" },
20+
{ name: "User Tag", value: `${app.client.user.tag}`, inline: true},
21+
{ name: "User ID", value: `${app.client.user.id}`, inline: true},
22+
{ name: "Bot Version", value: app.version.toFullString(), inline: true},
23+
{ name: "Bot Uptime", value: app.functions.TStoHR(app.client.uptime), inline: true},
24+
{ name: "Emote Count", value: `${Object.keys(app.config.system.emotes).length} total`, inline: true},
25+
{ name: "Embed Color Count", value: `${Object.keys(app.config.system.embedColors).length} total`, inline: true},
26+
{ name: "RPS Count", value: `${Object.keys(app.config.system.rotatingStatus.statuses).length} total`, inline: true},
27+
{ name: "Bot Memory Usage", value: (Math.round(process.memoryUsage().heapUsed / 1024 / 1024 * 100) / 100) + " MiB", inline: true },
28+
{ name: "Servers I'm In", value: app.client.guilds.cache.size + " total", inline: true},
29+
{ name: "Host System Information", value: "** **" },
30+
{ name: "Node Version", value: `${process.version}`, inline: true },
31+
{ name: "Node Uptime", value: app.functions.TStoHR(process.uptime()* 1000), inline: true },
32+
{ name: "Node Execution Path", value: `${process.execPath}`, inline: true},
33+
]
34+
}]
35+
});
36+
}
37+
}
38+

0 commit comments

Comments
 (0)