const { MessageEmbed, MessageAttachment } = require("discord.js"); module.exports = { name: 'choose', aliases: [], utilisation: '{prefix}choose ,', execute(client, message) { const arguments = message.content.split(/,+/g); arguments.shift().toLowerCase(); const Response = Math.floor(Math.random() * arguments.length); //const attachment = new MessageAttachment("./assets/choose.gif"); const embed = new MessageEmbed() embed.setColor('RANDOM') embed.setTitle("Commande Choose") embed.addField('Par les pouvoirs qui me sont conférés.', `Je choisi : **${arguments[Response]}**`) embed.setTimestamp(); embed.setImage("https://media.discordapp.net/attachments/924807447372247050/951251866010931301/choose.gif"); message.channel.send({ embeds: [embed] }); }, };