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] }); }, };