= Cleaning up edge cases

This commit is contained in:
Matthew Cech
2019-04-13 12:34:35 -07:00
parent 330e0c2e08
commit 0912034c2f
9 changed files with 30 additions and 10 deletions
+3
View File
@@ -40,6 +40,9 @@ public class CommandEightBall extends Command
@Override
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
{
if(input.args.trim().length() < 1)
res.Call(Localizer.Stub("Hmm? You'll need to ask a question!"));
res.Call(answers[(int) (Math.random()*answers.length)]);
}
}