Skip to content

Commit

Permalink
clarified warning when player gave an option that wasn't valid in a d…
Browse files Browse the repository at this point in the history
…irect message
  • Loading branch information
chairbender committed Nov 26, 2015
1 parent a58cd06 commit 5ced094
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public void onMessagePosted(SlackMessagePosted postedEvent) {
"You have already voted.");
} else if (!vote.equalsIgnoreCase("no") && !vote.equalsIgnoreCase("yes")) {
botState.sendPrivateMessageToPlayer(sender,
"Please vote only 'yes' or 'no'.");
"I didn't understand that. Please vote only 'yes' or 'no'.");
} else {
//register the vote
botState.placeVote(sender, vote.equalsIgnoreCase("yes"));
Expand Down Expand Up @@ -189,7 +189,7 @@ public void onMessagePosted(SlackMessagePosted postedEvent) {
} else if (!choice.equalsIgnoreCase("pass") && !choice.equalsIgnoreCase("fail")) {
//check that they submitted a valid vote
botState.sendPrivateMessageToPlayer(sender,
"Please vote only 'pass' or 'fail'.");
"I didn't understand that. Please vote only 'pass' or 'fail'.");
} else {
//register the vote, ensure that a resistance player can't vote "fail"
boolean pass = choice.equalsIgnoreCase("pass");
Expand Down Expand Up @@ -317,7 +317,7 @@ private void startGame() {
private void announceLeader() {
botState.sendPrompt("Attention " + botState.getLeaderUserName() + "! You are the current leader. \n" +
"Pick " + botState.getRequiredTeamSize() + " people to be on the team for the next mission.\n" +
"Use 'pick <username>' to add someone to the team. \nUse 'drop <username>' to remove them, " +
"Use 'pick @<username>' to add someone to the team. \nUse 'drop @<username>' to remove them, " +
"or just say 'drop' to remove everyone. \nSay 'done' to lock in your choices and let everyone vote on your choice." +
"\nYou can pick or drop yourself using 'pick me' or 'drop me'.");
}
Expand Down

0 comments on commit 5ced094

Please sign in to comment.