SHARE
TWEET

lol

a guest Aug 23rd, 2019 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. client.on("message", function(message) {
  2.     var prefix = "$";
  3.    if(message.content.startsWith(prefix + "help")) {
  4.     let messageArgs = message.content.split(" ").slice(1).join(" ");
  5.     let messageRPS = message.content.split(" ").slice(2).join(" ");
  6.     let arrayRPS = ['**# - Rock**','**# - Paper**','**# - Scissors**'];
  7.     let result = `${arrayRPS[Math.floor(Math.random() * arrayRPS.length)]}`;
  8.     var RpsEmbed = new Discord.RichEmbed()
  9.    
  10.     .setAuthor(message.author.username)
  11.     .setColor("RANDOM")
  12.     .setThumbnail(message.author.avatarURL)    
  13.     .addField("/โš”/Public | ุนุงู…ู‡ | ุนุงู…ู‡","๐Ÿ‘ฅ",true)
  14.     .addField("/โš”/Admin | ุงุฏุงุฑู‡ | ุงุฏุงุฑู‡","๐Ÿ‘‘",true)
  15.     .addField("/โš”/Games | ุงู„ุงู„ุนุงุจ | ุงู„ุนุงุจ","๐ŸŽฎ",true)
  16.     .addField("/โš”/Music | ุงู„ู…ูˆุณูŠู‚ุฉ | ุงู„ู…ูˆุณูŠู‚ุฉ","๐ŸŽต",true)
  17.    
  18.     message.channel.send(RpsEmbed).then(msg => {
  19.         msg.react('๐Ÿ‘ฅ')
  20.         msg.react("๐Ÿ‘‘")
  21.         msg.react("๐ŸŽฎ")
  22.         msg.react("๐ŸŽต")
  23. .then(() => msg.react('๐Ÿ‘ฅ'))
  24. .then(() =>msg.react('๐Ÿ‘‘'))
  25. .then(() => msg.react('๐ŸŽฎ'))
  26. .then(() => msg.react('๐ŸŽต'))
  27.      
  28. let reaction1Filter = (reaction, user) => reaction.emoji.name === '๐Ÿ‘ฅ' && user.id === message.author.id;
  29. let reaction2Filter = (reaction, user) => reaction.emoji.name === '๐Ÿ‘‘' && user.id === message.author.id;
  30. let reaction3Filter = (reaction, user) => reaction.emoji.name === '๐ŸŽฎ' && user.id === message.author.id;
  31. let reaction4Filter = (reaction, user) => reaction.emoji.name === '๐ŸŽต' && user.id === message.author.id;
  32. let reaction1 = msg.createReactionCollector(reaction1Filter, { time: 20000 });
  33.        
  34. let reaction2 = msg.createReactionCollector(reaction2Filter, { time: 19000 });
  35. let reaction3 = msg.createReactionCollector(reaction3Filter, { time: 18000 });
  36. let reaction4 = msg.createReactionCollector(reaction4Filter, { time: 18000 });
  37. reaction1.on("collect", r => {
  38.   const embed = new Discord.RichEmbed()
  39.       .setThumbnail('https://images-ext-2.discordapp.net/external/JD7xvknBVacXHoC2re78AtJN4PUY5IjUZy1uWIqzObI/https/s3.amazonaws.com/eclincher.wp.upload/wp-content/uploads/2015/08/25155834/people-icon.png')
  40.       .setColor("RANDOM")
  41.       .setDescription(`
  42. ** __LastBot๐ŸŒ€__
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top