aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Zajc <marko@zajc.eu.org>2022-10-11 16:41:23 +0200
committerMarko Zajc <marko@zajc.eu.org>2022-10-11 16:41:23 +0200
commit293f4d6da26f43e5a8088af0e8843443d421c5f0 (patch)
tree8c5d2701d939274442f2da23c3d16fe4f963275a
parentbf653c4286d106f0103551d2e7f28d49279565ae (diff)
Ignore case in RockPaperScissors
-rw-r--r--src/main/java/libot/commands/RockPaperScissorsCommand.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/libot/commands/RockPaperScissorsCommand.java b/src/main/java/libot/commands/RockPaperScissorsCommand.java
index 0707472..f2f02a0 100644
--- a/src/main/java/libot/commands/RockPaperScissorsCommand.java
+++ b/src/main/java/libot/commands/RockPaperScissorsCommand.java
@@ -56,7 +56,7 @@ public class RockPaperScissorsCommand extends BettableGame {
56 56
57 @Nullable 57 @Nullable
58 private static Gesture selectGesture(BettableGameContext c, Message resp) { 58 private static Gesture selectGesture(BettableGameContext c, Message resp) {
59 return switch (resp.getContentDisplay()) { 59 return switch (resp.getContentDisplay().toLowerCase()) {
60 case "rock" -> Gesture.ROCK; 60 case "rock" -> Gesture.ROCK;
61 case "paper" -> Gesture.PAPER; 61 case "paper" -> Gesture.PAPER;
62 case "scissors" -> Gesture.SCISSORS; 62 case "scissors" -> Gesture.SCISSORS;