Add about command

This commit is contained in:
Christopher Cookman 2025-09-28 23:20:02 -06:00
parent d195c292b3
commit 217e5a754c
2 changed files with 40 additions and 0 deletions

View file

@ -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]
}
]

View 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 };