34 lines
1.2 KiB
JavaScript
34 lines
1.2 KiB
JavaScript
const Discord = require('discord.js');
|
|
const { execSync } = require('child_process');
|
|
const gitHash = execSync('git rev-parse --short HEAD').toString().trim();
|
|
const gitTimestamp = execSync(`git log -1 --pretty=format:"%ct"`).toString().trim();
|
|
const gitCommiter = execSync(`git log -1 --pretty=format:"%cn <%ce>"`).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} by ${gitCommiter} on <t:${gitTimestamp}:F>`,
|
|
inline: true
|
|
}
|
|
]
|
|
}]
|
|
})
|
|
}
|
|
module.exports = { execute }; |