Advertisement
Guest User

Untitled

a guest
Jul 15th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. function aprovada() {
  2. message.channel.send({
  3. "embed": {
  4. "description": replaceCumulative("#Aprovada", "✖ **APROVADA**", aprovadas).join('\n\n'),
  5. "color": 0x00ff00,
  6. "footer": {
  7. "icon_url": message.author.avatarURL,
  8. "text": "Pedido por "+message.author.tag
  9. }
  10. }
  11. }).then(function (messagee) {
  12. messagee.react("✖");
  13.  
  14. const filter = (reaction, user) => {
  15. return reaction.emoji.name === '✖' && user.id === message.author.id;
  16. };
  17.  
  18. const collector = messagee.createReactionCollector(filter, { time: 15000 });
  19.  
  20. collector.on('collect', (reaction, reactionCollector) => {
  21. messagee.delete();
  22. });
  23.  
  24. });
  25. }
  26.  
  27. function reprovada() {
  28. message.channel.send({
  29. "embed": {
  30. "description": replaceCumulative("#Reprovada", "✖ **REPROVADA**", aprovadas).join('\n\n'),
  31. "color": 0xff0000,
  32. "footer": {
  33. "icon_url": message.author.avatarURL,
  34. "text": "Pedido por "+message.author.tag
  35. }
  36. }
  37. }).then(function (messagee) {
  38. messagee.react("✖");
  39.  
  40. const filter = (reaction, user) => {
  41. return reaction.emoji.name === '✖' && user.id === message.author.id;
  42. };
  43.  
  44. const collector = messagee.createReactionCollector(filter, { time: 15000 });
  45.  
  46. collector.on('collect', (reaction, reactionCollector) => {
  47. messagee.delete();
  48. });
  49.  
  50. });
  51. }
  52. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement