diff --git a/src/commands/general/CommandChoose.java b/src/commands/general/CommandChoose.java index 7fc258e..8aa0c5c 100644 --- a/src/commands/general/CommandChoose.java +++ b/src/commands/general/CommandChoose.java @@ -27,12 +27,20 @@ public class CommandChoose extends Command String [] choices = input.args.split(","); - if(choices.length == 1) + if(choices.length <= 1) { res.send(LocStrings.stub("ChooseOne")); return; } + for(int i = 0; i < choices.length; i ++) + { + if (choices[i].equals("")) + { + choices[i] = "KittyBot is the best!"; + } + } + res.send(String.format(LocStrings.stub("ChooseChoice"), (choices[(int) (Math.random()*choices.length)]).toString())); } }