SHARE
TWEET

Imagenes random, codigo bot discord.

PATAJr Dec 8th, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Buenas, aqui estoy de nuevo molestando con mas codigos.
  2. Acabo de hacer un "Imagen Random" usando Math.random Parecido al comando
  3. ch!meme del famoso chocolat, espero y disfrutes. */
  4.  
  5.  
  6.  
  7. {
  8.       let creador = ["", "", "", "", "", "Agrega cuantas imagenes quieras.", ""];
  9.      
  10.       let patajr = Math.floor((Math.random() * imagenes.length));     // Puedes cambiar el nombre de "patajr" y "creador"
  11.      
  12.       const embed = new Discord.RichEmbed() //Desde aqui comienza el embed.
  13. .setAuthor(message.author.username, message.author.displayAvatarURL)
  14. .setImage(creador[patajr])
  15. .setColor('RANDOM')
  16. .setTimestamp()
  17.  
  18. message.channel.send(embed)
  19.                    
  20.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top