mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
37 lines
1.3 KiB
TypeScript
37 lines
1.3 KiB
TypeScript
import { SlashCommandBuilder } from 'discord.js';
|
|
import discord from '../../discord.json' assert { type: 'json' };
|
|
import infoEmbed from '../core/interaction/infoEmbed.js';
|
|
import {
|
|
CommandRegistry,
|
|
guildCommands,
|
|
publicCommands,
|
|
} from '../events/interactionCreate.js';
|
|
import { client } from '../index.js';
|
|
|
|
export default {
|
|
inProduction: true,
|
|
inDevelopment: false,
|
|
inPublic: true,
|
|
|
|
command: new SlashCommandBuilder()
|
|
.setName('help')
|
|
.setDescription('All the help you need about the bot'),
|
|
|
|
execute(interaction) {
|
|
return infoEmbed(
|
|
`${client.user?.username} help`,
|
|
`**About**\n${
|
|
client.user?.username
|
|
} automates many mundane tasks and provide statistics in numerous flexible ways.\n\nMade by TresAbhi from the Skilled [SKLLD] clan.\nGitHub: https://github.com/tresabhi/blitzkrieg\nDiscord server: https://discord.gg/nDt7AjGJQH\nSkilled server: https://discord.gg/ZPvcEG7DS8\n\n**Commands**\n${(interaction.guildId ===
|
|
discord.sklld_guild_id
|
|
? [...guildCommands, ...publicCommands]
|
|
: publicCommands
|
|
)
|
|
.map((command) => `**/${command.name}**: ${command.description}`)
|
|
.join(
|
|
'\n',
|
|
)}\n\n*I am a new bot; I may make mistakes and go offline unexpectedly from time to time.*`,
|
|
);
|
|
},
|
|
} satisfies CommandRegistry;
|