Advertisement
Guest User

Code Discord Bot Creation by SUPRAZY #32

a guest
Mar 30th, 2020
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. const Discord = require("discord.js")
  2. let object = ["⛰️" , "✂️", "🧻"]
  3. let calcul = Math.floor((Math.random() * object.length))
  4.  
  5. module.exports.run = async (bot, message, args) => {
  6.  
  7. if(!args[0]) return message.channel.send("Svp, choisissez entre ``pierre`` ``papier`` ``ciseaux``")
  8.  
  9. var RPSEMBED = new Discord.RichEmbed()
  10. .setColor('RANDOM')
  11. .setFooter(message.guild.me.displayName, bot.user.displayAvatarURL)
  12. .setDescription(`**Vous avez sélectionner :** **${args[0]}** \n **Le bot à sélectionner : ${object[calcul]}**`)
  13.  
  14. message.channel.send(RPSEMBED)
  15. }
  16. module.exports.help = {
  17. name: "rps"
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement