1. Welcome to the Brawl website! Feel free to look around our forums. Join our growing community by typing /register in-game!

Bored of judging mod applications? {JavaScript}

Discussion in 'Off Topic' started by maxwellj02, Nov 13, 2013.

Thread Status:
Please be aware that this thread is more than 30 days old. Do not post unless the topic can still be discussed. Read more...
  1. maxwellj02

    maxwellj02 Well-Known Member

    Joined:
    Aug 4, 2013
    Messages:
    939
    Ratings:
    +163
    This is not really meant as a replacement to normal judging. But for those who judge lots, this could help with responses. This certain code only contains 3 parameters (active,age,applicationLength). It's just out there for you. I'm going to put very detailed steps to this.

    Steps:

    1. Copy the code in Step 2 and go to this JavaScript interpreter
    2. Code:
      var moderatorApplicant=new Object();
      moderatorApplicant.active=true; //boolean;
      moderatorApplicant.age=13; //number;
      moderatorApplicant.applicationLength="long"; //string, "short" or "long";
      
      console.log("Moderator Application Judge Result:");
      if (moderatorApplicant.active) {
        if (moderatorApplicant.age >=14) {
          if (moderatorApplicant.applicationLength=="long") {
            message = "You are fit for a mod! +1";
          } else {
            message = "App is short, but you're active, and you meet age requirements. +0";
          }
        } else {
          if (moderatorApplicant.applicationLength=="long") {
            message = "You're active! You're app is long! You aren't 14 or over though, so +0.";
          } else {
            message = "You're active, your app is short, and you are younger than 14. -1";
          }
        }
      } else {
        if (moderatorApplicant.age >=14) {
          if (moderatorApplicant.applicationLength=="long") {
            message = "You are not active, but you are over 14 and have a long app. Try again when you are more active +0";
          } else {
            message = "You are not active. You made a short app, but you are over 14. -1";
          }
        } else {
          if (moderatorApplicant.applicationLength=="long") {
            message = "You're young, you aren't active, but your app is long. -1";
          } else {
            message = "This is the definition of a bad application. Not active, younger than 14, and short app. -1.";
          }
        }
      }
      
      if (!message) message = "Check again. Inappropriate values.";
      console.log(message);
    3. IF this code confuses you, do not look any further than
      Code:
      moderatorApplicant.applicationLength
    4. To put in parameters, find
      Code:
      var moderatorApplicant=new Object();
    5. Look at the line directly under it:
      Code:
      moderatorApplicant.active={true/false}
      Put true or false on the right side of the equals sign. A boolean is true/false.
    6. Then find the line directly under that:
      Code:
      moderatorApplicant.age={number}
      Put the age, and nothing else on the right side of the equal sign.
    7. Find the last line you need to edit:
      Code:
      moderatorApplicant.applicationLength={"long" or "short"}
      Then put either "long" or "short" and NOTHING BUT. EVEN CAPS. It must be exactly "long" or "short". Make sure to put it in doublequotes (" ").
    8. Repeat Steps 1-6 as much as you want.
    9. Enjoy!

    This is just a practice program I made, since I started JS on Saturday. Don't judge me :frowning:
     
    #1 maxwellj02, Nov 13, 2013
    Last edited: Nov 13, 2013
  2. e621Warwick

    e621Warwick Well-Known Member

    Joined:
    Aug 3, 2013
    Messages:
    1,743
    Ratings:
    +1,351
    So we spend more time reading the application and filling in data to your code to spit out a canned response that we still have to copy/paste rather than spend 5 seconds giving a personalized response that tells them what they need to improve on?
    Seems legit.
    If anything, it makes it more boring.
     
  3. maxwellj02

    maxwellj02 Well-Known Member

    Joined:
    Aug 4, 2013
    Messages:
    939
    Ratings:
    +163
    The point is to look over the app quickly, and put in the parameters, which will help guide you in your personalized answer.
     
  4. e621Warwick

    e621Warwick Well-Known Member

    Joined:
    Aug 3, 2013
    Messages:
    1,743
    Ratings:
    +1,351
    I can look it over and give a personalized response quicker just by doing it myself.
    You probably end up spending more time putting stuff into code than you would scanning it and typing.
    :V
     
  5. maxwellj02

    maxwellj02 Well-Known Member

    Joined:
    Aug 4, 2013
    Messages:
    939
    Ratings:
    +163
    :V V: Like I said:
     
  6. F1r3tar

    F1r3tar Highly Established Member

    Joined:
    Aug 3, 2013
    Messages:
    8,931
    Ratings:
    +1,826
    Thanks Maxwell, I'll go try it out right now. :smile:
     
  7. maxwellj02

    maxwellj02 Well-Known Member

    Joined:
    Aug 4, 2013
    Messages:
    939
    Ratings:
    +163
    Thank you! :joyful:
     
  8. F1r3tar

    F1r3tar Highly Established Member

    Joined:
    Aug 3, 2013
    Messages:
    8,931
    Ratings:
    +1,826
    Goddamn, I can't paste it into the blue box on my iPad. XD
     
  9. maxwellj02

    maxwellj02 Well-Known Member

    Joined:
    Aug 4, 2013
    Messages:
    939
    Ratings:
    +163
    get on your computer :grinning:
     
Loading...
Similar Threads Forum Date
AMA Returned JMod and bored in school // at home Off Topic Oct 8, 2019
AMA very, very bored Off Topic Aug 9, 2018
thread cuz bored KitBrawl Jun 26, 2018
boredom Off Topic Apr 21, 2018
AMA im bored and generic Off Topic Apr 21, 2018
Thread Status:
Please be aware that this thread is more than 30 days old. Do not post unless the topic can still be discussed. Read more...