61 lines
2.4 KiB
Plaintext
61 lines
2.4 KiB
Plaintext
1759123202
|
||
|
||
[1mdiff --git a/commands.js b/commands.js[m
|
||
[1mindex 16a54fa..a1ec8f3 100644[m
|
||
[1m--- a/commands.js[m
|
||
[1m+++ b/commands.js[m
|
||
[36m@@ -148,6 +148,13 @@[m [mconst globalCommands = [[m
|
||
type: 1 // SUB_COMMAND type[m
|
||
}[m
|
||
][m
|
||
[32m+[m[32m },[m
|
||
[32m+[m [32m{[m
|
||
[32m+[m[32m name: "about",[m
|
||
[32m+[m[32m description: "Tell me about this bot",[m
|
||
[32m+[m[32m type: 1, // CHAT_INPUT type,[m
|
||
[32m+[m[32m integration_types: [0, 1],[m
|
||
[32m+[m[32m contexts: [0, 1, 2][m
|
||
}[m
|
||
][m
|
||
[m
|
||
[1mdiff --git a/interactions/commands/about.js b/interactions/commands/about.js[m
|
||
[1mnew file mode 100644[m
|
||
[1mindex 0000000..9ac3fa7[m
|
||
[1m--- /dev/null[m
|
||
[1m+++ b/interactions/commands/about.js[m
|
||
[36m@@ -0,0 +1,33 @@[m
|
||
[32m+[m[32mconst Discord = require('discord.js');[m
|
||
[32m+[m[32mconst { execSync } = require('child_process');[m
|
||
[32m+[m[32mconst gitHash = execSync('git rev-parse --short HEAD').toString().trim();[m
|
||
[32m+[m
|
||
[32m+[m[32mconst execute = async (interaction, db, client) => {[m
|
||
[32m+[m[32m if (!interaction.isCommand()) return;[m
|
||
[32m+[m[32m await interaction.reply({[m
|
||
[32m+[m [32mephemeral: true,[m
|
||
[32m+[m [32membeds: [{[m
|
||
[32m+[m [32mtitle: "About Satanic Security",[m
|
||
[32m+[m [32mdescription: "Satanic Security is designed to keep track of known bad actors and help server admins of vulnerable communities keep them out. This is an Open Source project, Licensed under the GPL-3.0 License.\n\n[The source code is available on Git](https://git.chrischro.me/ChrisChrome/satanic-security)",[m
|
||
[32m+[m [32mcolor: 0x00FFFF,[m
|
||
[32m+[m [32mfields: [[m
|
||
[32m+[m [32m{[m
|
||
[32m+[m [32mname: "Lead Developer",[m
|
||
[32m+[m [32mvalue: "<@289884287765839882> (@chrischrome)",[m
|
||
[32m+[m [32minline: true[m
|
||
[32m+[m [32m},[m
|
||
[32m+[m [32m{[m
|
||
[32m+[m [32mname: "Guilds using Satanic Security",[m
|
||
[32m+[m [32mvalue: `${client.guilds.cache.size}`,[m
|
||
[32m+[m [32minline: true[m
|
||
[32m+[m [32m},[m
|
||
[32m+[m [32m{[m
|
||
[32m+[m [32mname: "Version",[m
|
||
[32m+[m [32mvalue: `Git Commit: ${gitHash}`,[m
|
||
[32m+[m [32minline: true[m
|
||
[32m+[m [32m}[m
|
||
[32m+[m [32m][m
|
||
[32m+[m [32m}][m
|
||
[32m+[m [32m})[m
|
||
[32m+[m[32m}[m
|
||
[32m+[m[32mmodule.exports = { execute };[m
|
||
\ No newline at end of file[m
|