Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. const Discord = require('discord.js');
  2. module.exports.run = (client, message, args) => {
  3.  
  4.  
  5. const helpinicial = new Discord.RichEmbed()
  6. .setTitle("Ajuda")
  7. .setDescription("🎵 **|** Comandos de música!\n🎮 **|** Comandos de diversão!\n🔧 **|** Comandos de moderação!\n🔙 **|** Mostra essa pagina")
  8. .setFooter(`Comando enviado por ${message.author.username}`, message.author.displayAvatarURL)
  9. .setTimestamp();
  10.  
  11. const helpdiversao = new Discord.RichEmbed()
  12. .setTitle("Ajuda - Diversão")
  13. .setDescription("**b!shippar |** Cria um ship entre dois usuários, será que dá certo?\n**b!texto |** Cria um texto usando uma foto de um usuario")
  14. .setFooter(`Comando enviado por ${message.author.username}`, message.author.displayAvatarURL)
  15. .setTimestamp();
  16.  
  17. const musica = new Discord.RichEmbed()
  18. .setTitle("Ajuda - Música")
  19. .setDescription("**b!tocar (link) |** Toca uma musica a partir de um link")
  20. .setFooter(`Comando enviado por ${message.author.username}`, message.author.displayAvatarURL)
  21. .setTimestamp();
  22.  
  23. message.author.send(helpinicial).then(async msg => {
  24. await msg.react("🎵")
  25. await msg.react("🎮")
  26. await msg.react("🔧")
  27. await msg.react("🔙")
  28. const collector = msg.createReactionCollector((r, u) => (r.emoji.name === '🎣', '🔙', '🕵', '🎵') && (u.id !== client.user.id && u.id === message.author.id))
  29. collector.on("collect", r=> {
  30. switch(r.emoji.name) {
  31. case '🎮':
  32. msg.edit(helpdiversao)
  33. break;
  34. case '🎵':
  35. msg.edit(musica)
  36. break;
  37. case '🔙':
  38. msg.edit(helpinicial)
  39. break;
  40. }
  41. })
  42. })
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement