Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require("discord.js");
- module.exports.run = async(bot, message, args) => {
- message.channel.send(` ${message.author}, enviei uma mensagem para você no privado.`);
- await message.author.createDM();
- message.author.send({embed: {
- 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.\`\`\`"
- }});
- var tazer = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1 });
- tazer.on('collect', r=> {
- let idade = r.content;
- message.author.send({embed: {
- description: "```Indique a sua idade.\nEx: 14. (Minimo 14 anos.)```"
- }});
- var tazer1 = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1 });
- tazer1.on('collect', r=> {
- let microfone = r.content;
- message.author.send({embed: {
- description: "```Você possui microfone?\nEx: Sim ou Não.```"
- }});
- var tazer2 = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1 });
- tazer2.on('collect', r=> {
- let link = r.content;
- message.author.send({embed: {
- description: "```Qual o link da sua Steam e o seu ID?```"
- }});
- var tazer3 = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1 });
- tazer3.on('collect', r=> {
- let horas = r.content;
- message.author.send({embed: {
- description: "```Indique quantas Horas joga por dia.\nEx: 4 Horas```"
- }});
- var tazer4 = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1 });
- tazer4.on('collect', r=> {
- let horascs = r.content;
- message.author.send({embed: {
- description: "```Quantas Horas de CS:GO você possui?\nEx: 1400Hrs```"
- }});
- var tazer5 = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1 });
- tazer5.on('collect', r=> {
- let plataforma = r.content;
- message.author.send({embed: {
- description: "```Qual plataforma você usa para conversar?\nEx: Discord ou TeamSpeak```"
- }});
- var tazer6 = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1 });
- tazer6.on('collect', r=> {
- let comunidadeparte = r.content;
- message.author.send({embed: {
- description: "```Você ja fez parte de alguma comunidade? Se sim indique-a e diga qual a sua função.\nEx: GuardiõesElite - Gerenciar-la```"
- }});
- var tazer7 = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1 });
- tazer7.on('collect', r=> {
- let razao = r.content;
- message.author.send({embed: {
- description: "```Qual a razão pelo qual queres entrar na staff? (Minimo 3 Linhas)\nEx: tal tal tal.```"
- }});
- var tazer8 = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1 });
- tazer8.on('collect', r=> {
- let porqueescolheu = r.content;
- message.author.send({embed: {
- description: "```Qual o servidor você escolheria para ser staff?\nEx: AWP / SURF COMBAT OU ARENAS```"
- }});
- var tazer1 = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1});
- tazer1.on('collect', r=> {
- let aprov = r.content;
- message.author.send({embed: {description: "**Tem certeza que pretende continuar, ** `Confirmar`, **para cancelar digite `Cancelar`**."}})
- var confirm = message.author.dmChannel.createMessageCollector(a=>a.author.id == message.author.id, { time: 10000 * 50, max: 1});
- confirm.on('collect', r=>{
- if (r.content.toLowerCase() == "confirmar") {
- message.author.send({embed: {description: "📌 Sua candidatura foi `enviada` com sucesso. "}});
- const channel = message.guild.channels.find(val => val.name === 'candidaturas');
- if (!channel) return message.channel.send('> :x: | Não encontrei esse canal!')
- const form = new Discord.RichEmbed()
- .setTitle(`<:social:670623317685829644> **NOVA CANDIDATURA**`)
- .setDescription(`Nova candidatura enviada por: **${message.author.username}#${message.author.discriminator}**`)
- .setThumbnail(bot.user.avatarURL)
- .addField(`Nome completo:`, idade)
- .addField(`Idade:`, microfone)
- .addField(`Microfone:`, link)
- .addField(`Link Steam e ID:`, horas)
- .addField(`Quantas Horas Joga por dia:`, horascs)
- .addField(`Quantas Horas tem no CS:`, plataforma)
- .addField(`Qual a plataforma:`, comunidadeparte)
- .addField(`Comunidade que fez parte:`, razao)
- .addField(`Qual a razao pelo qual quer entrar:`, porqueescolheu)
- .addField(`Porque escolheu esta comunidade:`, aprov)
- .setColor('#36393e')
- .setTimestamp()
- channel.send(form)
- }
- if (r.content.toLowerCase() == "cancelar") {
- message.author.send({embed: {description: "cancelado."}});
- }
- });
- })
- })
- })
- })
- })
- })
- })
- })
- })
- })
- }
- module.exports.help = {
- name: "candidatura"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement