Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const { Command } = require("discord.js-commando");
  2. const Discord = require("discord.js");
  3.  
  4. class DevApplyCommand extends Command {
  5.     constructor(client) {
  6.         super(client, {
  7.             name:'devapply',
  8.             memberName:'devapply',
  9.             guildOnly: true,
  10.             group:'main',
  11.             description:'N/A',
  12.             args: [
  13.  
  14.                 {
  15.                     key:'Ign',
  16.                     prompt:'What Is Your Minecraft IGN (In Game Name)?',
  17.                     type:'string'
  18.                 },
  19.                 {
  20.                     key:'Why',
  21.                     prompt:'Why do you want to be Developer for PhantomNetwork?',
  22.                     type:'string',
  23.                     wait: 300
  24.                 },
  25.                 {
  26.                     key:'WhatType',
  27.                     prompt:'What type of Developer are you? (Configger, Coder/Programmer)',
  28.                     type:'string',
  29.                     wait: 120
  30.                 },
  31.                 {
  32.                     key:'WhatLangs',
  33.                     prompt:'What languages do you know?',
  34.                     type:'string',
  35.                     wait: 180
  36.                 },
  37.                 {
  38.                    key:'portfolio',
  39.                    prompt:'Can you provide a portfolio of your work or a github or spigot?',
  40.                    type:'string',
  41.                    wait: 180
  42.                 },
  43.                 {
  44.                     key:'simplequestion',
  45.                     prompt:'**Simple Question:** What is boolean?',
  46.                     type:'string',
  47.                     validate: text => {
  48.                         if (text.includes("true") || text.includes("false") || text.includes("return") || text.includes("on") || text.includes("off") || text.includes("1") || text.includes("0")) return true;
  49.                         return 'You have not answered the question correctly. You are most likely not fit for a developer, you may try again, bellow, or reapply later on.';
  50.                     }    
  51.                 }
  52.             ]
  53.         })
  54.     }
  55.  
  56.     async run(message, { Ign, Why, WhatType, WhatLangs, portfolio, simplequestion }) {
  57.         const embed = new Discord.RichEmbed()
  58.         .setAuthor(message.author.tag, message.author.displayAvatarURL)
  59.         .setThumbnail(message.author.displayAvatarURL)
  60.         .setFooter("Developer Application")
  61.         .setTimestamp(message.createdAt)
  62.         .addField("Ign", Ign)
  63.         .addField("Why do you want to be Developer for PhantomNetwork?", Why)
  64.         .addField("What type of Developer are you? (Configger, Coder/Programmer)", WhatType)
  65.         .addField("What languages do you know?", WhatLangs)
  66.         .addField("Can you provide a portfolio of your work or a github or spigot?", portfolio)
  67.         .addField("**Simple Question:** What is boolean?", simplequestion)
  68.         message.guild.channels.get("404492881143791617").send({embed});
  69.     }
  70. }
  71.  
  72. module.exports = DevApplyCommand;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement