AI_botter/commands/messages/help.js
DeathbotGaming 961f8b00d1
Ai-Bot
V1.0.0
2024-03-01 02:09:57 -09:00

33 lines
No EOL
1 KiB
JavaScript

const Discord = require('discord.js');
const config = require('../../configs/config.json');
const { chatbot } = require('../../configs/chatbot');
module.exports = {
name: "Help",
aliases: ["H", "CMD", "CMDs", "Command", "Commands"],
description: "Shows This!",
async execute(client, message, args, cmd) {
await message.channel.sendTyping();
const embed = new Discord.EmbedBuilder()
.setColor(config.MainColor)
.setAuthor({
name: `${client.user.username} Commands`,
iconURL: client.user.displayAvatarURL({ size: 1024 })
})
.setDescription(client.MessageCommands.map(c => `> \`${config.Prefix}${c.name}\` \`(${c.aliases?.map(a => `${config.Prefix}${a}`)?.join(' / ') || 'No Aliases'})\`\n> *${c.description}*`).join('\n\n'))
.setFooter({ text: 'Assisto' });
if (chatbot.State) embed.addFields({
name: 'ChatBot:',
value: `Channel: <#${chatbot.ChatBotChannel}>`,
inline: true
});
await message.reply({ embeds: [embed] });
},
};