2023-06-16 02:01:06 +00:00
import { SlashCommandBuilder } from 'discord.js' ;
2023-04-26 14:23:42 +00:00
import discord from '../../discord.json' assert { type : 'json' };
2023-06-16 02:01:06 +00:00
import infoEmbed from '../core/interaction/infoEmbed.js' ;
2023-05-21 16:50:05 +00:00
import {
CommandRegistry ,
guildCommands ,
publicCommands ,
} from '../events/interactionCreate.js' ;
2023-04-28 13:52:31 +00:00
import { client } from '../index.js' ;
2023-04-26 14:23:42 +00:00
export default {
2023-04-26 23:43:43 +00:00
inProduction : true ,
2023-06-23 17:14:27 +00:00
inDevelopment : false ,
2023-04-26 14:23:42 +00:00
inPublic : true ,
command : new SlashCommandBuilder ()
2023-06-21 02:01:12 +00:00
. setName ( 'help' )
2023-04-26 14:23:42 +00:00
. setDescription ( 'All the help you need about the bot' ),
2023-06-16 02:01:06 +00:00
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.*` ,
);
2023-04-26 14:23:42 +00:00
},
} satisfies CommandRegistry ;