Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
17815f3
Fixed the aliases on 8ball.
IDeletedSystem64 Feb 1, 2022
b12e807
Create and finish purge command.
IDeletedSystem64 Feb 2, 2022
74edcff
Merge branch 'TMC-Software:v5' into v5
IDeletedSystem64 Feb 2, 2022
9da0bfb
Fix issue with it trying to reply to a non existant message.
IDeletedSystem64 Feb 3, 2022
04cdd8d
Typing is hard, Grammarly can help.
IDeletedSystem64 Feb 3, 2022
45cfd4d
Change cooldown, set to guildOnly. Fix succ. message
IDeletedSystem64 Feb 3, 2022
18fdd5d
Okay, now I think I can commit changes. (Change the cooldown, set as …
IDeletedSystem64 Feb 3, 2022
e2809a0
Update purge.js
Aisuruneko Feb 3, 2022
abccc7a
Update Dependencies
IDeletedSystem64 Feb 3, 2022
2da1ff1
Whoops, All dependencies!
IDeletedSystem64 Feb 3, 2022
1ff7b20
Whoops, all systeminformation.
IDeletedSystem64 Feb 3, 2022
5e2460c
Merge branch 'TMC-Software:v5' into v5
IDeletedSystem64 Feb 3, 2022
39b8701
Merge branch 'TMC-Software:v5' into v5
IDeletedSystem64 Feb 3, 2022
5a12c5f
Delete example json
IDeletedSystem64 Feb 3, 2022
4768f1c
Make TStoHR function not put time in bold by default
IDeletedSystem64 Feb 4, 2022
c1b22f1
Add about command (mostly finished)
IDeletedSystem64 Feb 4, 2022
013d0a4
Move dependency to app.js
IDeletedSystem64 Feb 4, 2022
a11b8da
Update dependencies one more fricken time..
IDeletedSystem64 Feb 4, 2022
e6fca8a
Remove system information
IDeletedSystem64 Feb 4, 2022
245c92b
This better be the last fucking time I modify the dependencies, You h…
IDeletedSystem64 Feb 4, 2022
634590f
Am I done modifying dependents for one day??
IDeletedSystem64 Feb 7, 2022
3bdaa98
Finish that fine fine lookin' about command
IDeletedSystem64 Feb 7, 2022
2480b54
Fix a missing reference to systeminformation
Aisuruneko Feb 7, 2022
eb1545d
Syntax error
Aisuruneko Feb 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
"colors": "^1.4.0",
"discord.js": "^13.3.1",
"node-fetch": "^2.6.1",
"node-os-utils": "^1.3.6",
"node-vibrant": "^3.2.1-alpha.1",
"os": "^0.1.2",
"os-utils": "^0.0.14",
"sequelize": "^6.7.0",
"sqlite": "^4.0.23",
"sqlite3": "^5.0.2"
Expand Down
5 changes: 3 additions & 2 deletions src/app/cfg/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const app = {
totalSeconds %= 3600;
let minutes = Math.floor(totalSeconds / 60);
let seconds = totalSeconds % 60;
let HR = `**${days} days, ${hours} hours, ${minutes} minutes and ${Math.round(seconds)} seconds**`;
let HR = `${days} days, ${hours} hours, ${minutes} minutes and ${Math.round(seconds)} seconds`;

if (days == 0) HR = HR.replace(days + " days, ", "");
else if (days == 1) HR = HR.replace("days", "day");
Expand Down Expand Up @@ -422,7 +422,8 @@ const app = {
{ name: "node-fetch", required: true },
{ name: "discord.js", required: true },
{ name: "sequelize", required: true },
{ name: "http", required: false },
{ name: "os", required: true},
{ name: "node-os-utils", required: true},
{ name: "canvas", required: false }
]
}
Expand Down
43 changes: 43 additions & 0 deletions src/app/cmds/General/about.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
module.exports = {
name: "about",
description: `Get info about me, ${app.client.user.tag}!`,
guildOnly: false,
authorizedGuilds: [],
hidden: false,
permissions: ["DEFAULT"],
cooldown: 2,
aliases: ["botinfo", "aboutme"],
syntax: [],
execute: async(app, message, args) => {
const os = app.modules["os"]; // Welcome to os(u)~!
app.functions.msgHandler(message, {
embeds: [{
title: app.config.system.emotes.information + ` All about your favorite bot, **${app.client.user.tag}**!`,
color: app.config.system.embedColors.blue,
thumbnail: { url: app.client.user.displayAvatarURL({ format: 'png', dynamic: true, size: 1024 }) },
fields: [
{ name: "Bot Information", value: "** **" },
{ name: "User Tag", value: `${app.client.user.tag}`, inline: true},
{ name: "User ID", value: `${app.client.user.id}`, inline: true},
{ name: "Bot Version", value: app.version.toFullString(), inline: true},
{ name: "Bot Uptime", value: app.functions.TStoHR(app.client.uptime), inline: true},
{ name: "Emote Count", value: `${Object.keys(app.config.system.emotes).length} total`, inline: true},
{ name: "Embed Color Count", value: `${Object.keys(app.config.system.embedColors).length} total`, inline: true},
{ name: "RPS Count", value: `${Object.keys(app.config.system.rotatingStatus.statuses).length} total`, inline: true},
{ name: "Bot Memory Usage", value: (Math.round(process.memoryUsage().heapUsed / 1024 / 1024 * 100) / 100) + " MiB", inline: true },
{ name: "Servers I'm In", value: app.client.guilds.cache.size + " total", inline: true},
{ name: "Host System Information", value: "** **" },
{ name: "Node Version", value: `${process.version}`, inline: true },
{ name: "Node Uptime", value: app.functions.TStoHR(process.uptime()* 1000), inline: true },
{ name: "Node Execution Path", value: `${process.execPath}`, inline: true},
{ name: "Process PID", value: `${process.pid}`, inline: true},
{ name: "System Platform", value: `${process.platform}`, inline: true},
{ name: ((process.platform == "linux") ? "Kernel Version" : "System Version"), value: os.version(), inline: true }
// I'd like to have this show the current CPU usage, I'm open to ideas on how to get it to work. - IDeletedSystem64
],
footer: { text: app.config.system.footerText }
}]
});
}
}

6 changes: 0 additions & 6 deletions src/app/extras/extras.json.example

This file was deleted.