Advertisement
Guest User

Comando Candidatura

a guest
Jan 26th, 2020
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.30 KB | None | 0 0
  1. const Discord = require("discord.js");
  2.  
  3. module.exports.run = async(bot, message, args) => {
  4.  
  5. message.channel.send(` ${message.author}, enviei uma mensagem para você no privado.`);
  6.  
  7.  
  8. await message.author.createDM();
  9. message.author.send({embed: {
  10. description:"<:social:670623317685829644> **CANDIDATURA** \nVocê está prestes a iniciar a sua candidatura, para prosseguir responda as seguintes questões.\n \n``\`Indique o seu Nome Completo.\`\`\`"
  11. }});
  12. var tazer = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1 });
  13. tazer.on('collect', r=> {
  14. let idade = r.content;
  15. message.author.send({embed: {
  16. description: "```Indique a sua idade.\nEx: 14. (Minimo 14 anos.)```"
  17. }});
  18. var tazer1 = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1 });
  19. tazer1.on('collect', r=> {
  20. let microfone = r.content;
  21. message.author.send({embed: {
  22. description: "```Você possui microfone?\nEx: Sim ou Não.```"
  23. }});
  24. var tazer2 = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1 });
  25. tazer2.on('collect', r=> {
  26. let link = r.content;
  27. message.author.send({embed: {
  28. description: "```Qual o link da sua Steam e o seu ID?```"
  29. }});
  30. var tazer3 = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1 });
  31. tazer3.on('collect', r=> {
  32. let horas = r.content;
  33. message.author.send({embed: {
  34. description: "```Indique quantas Horas joga por dia.\nEx: 4 Horas```"
  35. }});
  36. var tazer4 = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1 });
  37. tazer4.on('collect', r=> {
  38. let horascs = r.content;
  39. message.author.send({embed: {
  40. description: "```Quantas Horas de CS:GO você possui?\nEx: 1400Hrs```"
  41. }});
  42. var tazer5 = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1 });
  43. tazer5.on('collect', r=> {
  44. let plataforma = r.content;
  45. message.author.send({embed: {
  46. description: "```Qual plataforma você usa para conversar?\nEx: Discord ou TeamSpeak```"
  47. }});
  48. var tazer6 = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1 });
  49. tazer6.on('collect', r=> {
  50. let comunidadeparte = r.content;
  51. message.author.send({embed: {
  52. description: "```Você ja fez parte de alguma comunidade? Se sim indique-a e diga qual a sua função.\nEx: GuardiõesElite - Gerenciar-la```"
  53. }});
  54. var tazer7 = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1 });
  55. tazer7.on('collect', r=> {
  56. let razao = r.content;
  57. message.author.send({embed: {
  58. description: "```Qual a razão pelo qual queres entrar na staff? (Minimo 3 Linhas)\nEx: tal tal tal.```"
  59. }});
  60. var tazer8 = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1 });
  61. tazer8.on('collect', r=> {
  62. let porqueescolheu = r.content;
  63. message.author.send({embed: {
  64. description: "```Qual o servidor você escolheria para ser staff?\nEx: AWP / SURF COMBAT OU ARENAS```"
  65. }});
  66.  
  67. var tazer1 = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1});
  68. tazer1.on('collect', r=> {
  69. let aprov = r.content;
  70.  
  71. message.author.send({embed: {description: "**Tem certeza que pretende continuar, ** `Confirmar`, **para cancelar digite `Cancelar`**."}})
  72. var confirm = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1});
  73. confirm.on('collect', r=>{
  74. if (r.content.toLowerCase() == "confirmar") {
  75. message.author.send({embed: {description: "📌 Sua candidatura foi `enviada` com sucesso. "}});
  76. const channel = message.guild.channels.find(val => val.name === 'candidaturas');
  77. if (!channel) return message.channel.send('> :x: | Não encontrei esse canal!')
  78. const form = new Discord.RichEmbed()
  79. .setTitle(`<:social:670623317685829644> **NOVA CANDIDATURA**`)
  80. .setDescription(`Nova candidatura enviada por: **${message.author.username}#${message.author.discriminator}**`)
  81. .setThumbnail(bot.user.avatarURL)
  82. .addField(`Nome completo:`, idade)
  83. .addField(`Idade:`, microfone)
  84. .addField(`Microfone:`, link)
  85. .addField(`Link Steam e ID:`, horas)
  86. .addField(`Quantas Horas Joga por dia:`, horascs)
  87. .addField(`Quantas Horas tem no CS:`, plataforma)
  88. .addField(`Qual a plataforma:`, comunidadeparte)
  89. .addField(`Comunidade que fez parte:`, razao)
  90. .addField(`Qual a razao pelo qual quer entrar:`, porqueescolheu)
  91. .addField(`Porque escolheu esta comunidade:`, aprov)
  92. .setColor('#36393e')
  93. .setTimestamp()
  94. channel.send(form)
  95.  
  96.  
  97.  
  98. }
  99.  
  100. if (r.content.toLowerCase() == "cancelar") {
  101. message.author.send({embed: {description: "cancelado."}});
  102. }
  103. });
  104. })
  105. })
  106. })
  107. })
  108. })
  109. })
  110. })
  111. })
  112. })
  113. })
  114.  
  115.  
  116.  
  117.  
  118. }
  119.  
  120.  
  121. module.exports.help = {
  122. name: "candidatura"
  123. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement