Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. client.on('message', message => {
  2. if (message.content == "§hug") {
  3. var x = ["https://media.giphy.com/media/od5H3PmEG5EVq/giphy.gif",
  4. "https://media.giphy.com/media/13YrHUvPzUUmkM/giphy.gif",
  5. "https://media.giphy.com/media/wnsgren9NtITS/giphy.gif",
  6. "https://media.giphy.com/media/qscdhWs5o3yb6/giphy.gif",
  7. "https://media.giphy.com/media/hi0VuTUqLrmuc/giphy.gif",
  8. "https://media.giphy.com/media/xJlOdEYy0r7ZS/giphy.gif",
  9. "https://media.giphy.com/media/7WQQXPg6o3YNa/giphy.gif",
  10. "https://media.giphy.com/media/LWTxLvp8G6gzm/giphy.gif",
  11. "https://media.giphy.com/media/xZshtXrSgsRHy/giphy.gif",
  12. "https://media.giphy.com/media/BXrwTdoho6hkQ/giphy.gif",
  13. "https://media.giphy.com/media/10BcGXjbHOctZC/giphy.gif",
  14. "https://media.giphy.com/media/49mdjsMrH7oze/giphy.gif",
  15. "https://media.giphy.com/media/xUPGcgtKxm4PADy3Cw/giphy.gif",
  16. "https://media.giphy.com/media/JTjSlqiz63j5m/giphy.gif",
  17. "https://media.giphy.com/media/aD1fI3UUWC4/giphy.gif",
  18. "https://media.giphy.com/media/5eyhBKLvYhafu/giphy.gif",
  19. "https://media.giphy.com/media/ddGxYkb7Fp2QRuTTGO/giphy.gif",
  20. "https://media.giphy.com/media/pXQhWw2oHoPIs/giphy.gif",
  21. "https://media.giphy.com/media/ZRI1k4BNvKX1S/giphy.gif",
  22. "https://media.giphy.com/media/ZQN9jsRWp1M76/giphy.gif",
  23. "https://media.giphy.com/media/s31WaGPAmTP1e/giphy.gif",
  24. "https://media.giphy.com/media/wSY4wcrHnB0CA/giphy.gif",
  25. "https://media.giphy.com/media/aVmEsdMmCTqSs/giphy.gif",
  26. "https://media.giphy.com/media/C4gbG94zAjyYE/giphy.gif",
  27. "https://media.giphy.com/media/ArLxZ4PebH2Ug/giphy.gif",
  28. "https://media.giphy.com/media/kFTKQfjK4ysZq/giphy.gif",
  29. "https://media.giphy.com/media/vVA8U5NnXpMXK/giphy.gif",
  30. "https://media.giphy.com/media/2q2qHJu838EyQ/giphy.gif",
  31. "https://media.giphy.com/media/q3kYEKHyiU4kU/giphy.gif",
  32. "https://media.giphy.com/media/3ZnBrkqoaI2hq/giphy.gif",
  33. "https://media.giphy.com/media/ExQqjagJBoECY/giphy.gif",
  34. "https://media.giphy.com/media/3o6Yg5fZCGeFArIcbm/giphy.gif"
  35. ];
  36.  
  37.  
  38. var x2 = Math.floor(Math.random()*x.length)
  39. message.channel.send(` ${x[x2]}`).then(msg1=> {
  40. var r = message.channel.awaitMessages(msg => msg.content == x[x2], {
  41. maxMatches : 1,
  42. time : 1,
  43. errors : ['time']
  44. })
  45.  
  46. })
  47. }
  48. })//By8LionDev_Dz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement