Skip to content

Instantly share code, notes, and snippets.

@JosueCarrillo
Created June 15, 2022 17:09
Show Gist options
  • Save JosueCarrillo/8c7e23b9e8315daee38447a8cc45eb87 to your computer and use it in GitHub Desktop.
Save JosueCarrillo/8c7e23b9e8315daee38447a8cc45eb87 to your computer and use it in GitHub Desktop.
commit bd443186f5049b873a2524e999194c188568e9b1
Author: jcarrillo <jcarrillo@etsy.com>
Date: Wed Jun 15 11:56:44 2022 -0500
Add .chido and .hecho
diff --git a/src/main/antlr3/com/etsy/pushbot/Command.g b/src/main/antlr3/com/etsy/pushbot/Command.g
index 7391f6b..84971e1 100644
--- a/src/main/antlr3/com/etsy/pushbot/Command.g
+++ b/src/main/antlr3/com/etsy/pushbot/Command.g
@@ -201,6 +201,7 @@ good
| 'ausgezeichnet'
| 'dope'
| 'sick'
+ | 'chido'
;
state
@@ -252,6 +253,7 @@ done
| 'jobdone'
| 'mic_drop'
| 'ykhwd'
+ | 'hecho'
;
ghost_ride_the_whip
diff --git a/src/test/java/com/etsy/pushbot/PushBotTest.java b/src/test/java/com/etsy/pushbot/PushBotTest.java
index ec19fda..57f608e 100644
--- a/src/test/java/com/etsy/pushbot/PushBotTest.java
+++ b/src/test/java/com/etsy/pushbot/PushBotTest.java
@@ -337,6 +337,11 @@ public class PushBotTest {
"gilbert* + mmercedes", pushTrain, ".sick", "#channel", "gilbert"
);
+ pushTrain = PushTrainReader.parse("gilbert + mmercedes");
+ assertTrainWithCommandEquals(
+ "gilbert* + mmercedes", pushTrain, ".chido", "#channel", "gilbert"
+ );
+
pushTrain = PushTrainReader.parse("gilbert + mmercedes");
assertTrainWithCommandEquals(
"gilbert* + mmercedes", pushTrain, ".ヽ༼ຈل͜ຈ༽ノ", "#channel", "gilbert"
@@ -920,6 +925,11 @@ public class PushBotTest {
"clear", pushTrain, ".ykhwd", "#channel", "gilbert"
);
+ pushTrain = PushTrainReader.parse("gilbert + mmercedes");
+ assertTrainWithCommandEquals(
+ "clear", pushTrain, ".hecho", "#channel", "gilbert"
+ );
+
pushTrain = PushTrainReader.parse("gilbert + mmercedes");
assertTrainWithCommandEquals(
"clear", pushTrain, ".ghost_ride_the_whip", "#channel", "gilbert"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment