package net.hexid.hexbot.bots;

import java.util.ArrayList;

public class Bing extends net.hexid.hexbot.bot.cmd.BotCommand {
	public Bing(ArrayList<String> botArgs) {
		super(botArgs);
	}

	public ArrayList<String> getBotExecuteData() {
		if(botArgs.size() == 0 || botArgs.size() > 4) {
			System.out.println("botArgs: email [, queryCount [, minDelay [, maxDelay]]]");
			System.exit(1);
		} else {
			botArgs.add("--password="+new String(System.console().readPassword("Password: ")));
		}
		return botArgs;
	}

	public String getShortName() {
		return "Bing";
	}
}
@@ -279,9 +279,9 @@
 ) %3E 
-4
+5
 ) %7B%0A
@@ -320,16 +320,29 @@
 email %5B,
+ password%5D %5B,
  queryCo
@@ -402,16 +402,86 @@
 %09%09%7D else
+ if(botArgs.size() == 1 %7C%7C botArgs.get(1).matches(%22-?%5C%5Cd+(%5C%5C.%5C%5Cd+)?%22))
  %7B%0A%09%09%09bo

Allow the password to be an optional argument, the only requirement being that it cannot be in the form of a number