Add about command
This commit is contained in:
parent
d195c292b3
commit
217e5a754c
|
@ -148,6 +148,13 @@ const globalCommands = [
|
|||
type: 1 // SUB_COMMAND type
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "about",
|
||||
description: "Tell me about this bot",
|
||||
type: 1, // CHAT_INPUT type,
|
||||
integration_types: [0, 1],
|
||||
contexts: [0, 1, 2]
|
||||
}
|
||||
]
|
||||
|
||||
|
|
33
interactions/commands/about.js
Normal file
33
interactions/commands/about.js
Normal file
|
@ -0,0 +1,33 @@
|
|||
const Discord = require('discord.js');
|
||||
const { execSync } = require('child_process');
|
||||
const gitHash = execSync('git rev-parse --short HEAD').toString().trim();
|
||||
|
||||
const execute = async (interaction, db, client) => {
|
||||
if (!interaction.isCommand()) return;
|
||||
await interaction.reply({
|
||||
ephemeral: true,
|
||||
embeds: [{
|
||||
title: "About Satanic Security",
|
||||
description: "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)",
|
||||
color: 0x00FFFF,
|
||||
fields: [
|
||||
{
|
||||
name: "Lead Developer",
|
||||
value: "<@289884287765839882> (@chrischrome)",
|
||||
inline: true
|
||||
},
|
||||
{
|
||||
name: "Guilds using Satanic Security",
|
||||
value: `${client.guilds.cache.size}`,
|
||||
inline: true
|
||||
},
|
||||
{
|
||||
name: "Version",
|
||||
value: `Git Commit: ${gitHash}`,
|
||||
inline: true
|
||||
}
|
||||
]
|
||||
}]
|
||||
})
|
||||
}
|
||||
module.exports = { execute };
|
Loading…
Reference in a new issue