Skip to content

Instantly share code, notes, and snippets.

@JosueCarrillo
Created June 15, 2022 17:11
Show Gist options
  • Save JosueCarrillo/006786aa5a4826cf1197c50aecc5405c to your computer and use it in GitHub Desktop.
Save JosueCarrillo/006786aa5a4826cf1197c50aecc5405c to your computer and use it in GitHub Desktop.
commit e5bd0e41019e03a4ea5bd2347fccd3fc0f9920d0
Author: jcarrillo <jcarrillo@etsy.com>
Date: Wed Jun 15 11:52:35 2022 -0500
Remove Rodeo comments
diff --git a/src/main/antlr3/com/etsy/pushbot/Command.g b/src/main/antlr3/com/etsy/pushbot/Command.g
index f76b6e2..7391f6b 100644
--- a/src/main/antlr3/com/etsy/pushbot/Command.g
+++ b/src/main/antlr3/com/etsy/pushbot/Command.g
@@ -1,11 +1,3 @@
-/**
- * WARNING: This file is under Rodeo scope.
- * You will need to file a Rodeo ticket and get both
- * engineering and business approval from #compliance-eng
- * to make changes.
- * See: http://et.sy/rodeo
- */
-
grammar Command;
import Shared;
diff --git a/src/main/antlr3/com/etsy/pushbot/PushTrain.g b/src/main/antlr3/com/etsy/pushbot/PushTrain.g
index c5599ed..73f20a5 100644
--- a/src/main/antlr3/com/etsy/pushbot/PushTrain.g
+++ b/src/main/antlr3/com/etsy/pushbot/PushTrain.g
@@ -1,9 +1,3 @@
-/**
- * WARNING: This file is under Rodeo scope.
- * You will need to file a Rodeo ticket to make changes.
- * See: http://et.sy/rodeo
- */
-
grammar PushTrain;
import Shared;
diff --git a/src/main/etc/sysconfig/pushbot b/src/main/etc/sysconfig/pushbot
index 595e672..934bb7e 100644
--- a/src/main/etc/sysconfig/pushbot
+++ b/src/main/etc/sysconfig/pushbot
@@ -1,9 +1,3 @@
-#
-# WARNING: This file is under Rodeo scope
-# You will need to file a Rodeo ticket to make changes.
-# See: http://et.sy/rodeo
-#
-
export JAVA_HOME=/usr
export DAEMON_DIR=/usr/etsy/PushBot
export DAEMON_JAR=target/PushBot.jar
diff --git a/src/main/java/com/etsy/pushbot/Bot.java b/src/main/java/com/etsy/pushbot/Bot.java
index af919ab..aa6f629 100644
--- a/src/main/java/com/etsy/pushbot/Bot.java
+++ b/src/main/java/com/etsy/pushbot/Bot.java
@@ -1,9 +1,3 @@
-/**
- * WARNING: This file is under Rodeo scope.
- * You will need to file a Rodeo ticket to make changes.
- * See: http://et.sy/rodeo
- */
-
package com.etsy.pushbot;
import com.etsy.push.db.PushIdDAO;
diff --git a/src/main/java/com/etsy/pushbot/PushBotSlack.java b/src/main/java/com/etsy/pushbot/PushBotSlack.java
index c113ad2..768505a 100644
--- a/src/main/java/com/etsy/pushbot/PushBotSlack.java
+++ b/src/main/java/com/etsy/pushbot/PushBotSlack.java
@@ -1,9 +1,3 @@
-/**
- * WARNING: This file is under Rodeo scope.
- * You will need to file a Rodeo ticket to make changes.
- * See: http://et.sy/rodeo
- */
-
package com.etsy.pushbot;
import com.etsy.ChannelNotFoundException;
diff --git a/src/main/java/com/etsy/pushbot/PushTrain.java b/src/main/java/com/etsy/pushbot/PushTrain.java
index 75c8da6..ea08ea6 100644
--- a/src/main/java/com/etsy/pushbot/PushTrain.java
+++ b/src/main/java/com/etsy/pushbot/PushTrain.java
@@ -1,9 +1,3 @@
-/**
- * WARNING: This file is under Rodeo scope.
- * You will need to file a Rodeo ticket to make changes.
- * See: http://et.sy/rodeo
- */
-
package com.etsy.pushbot;
import com.etsy.ChannelNotFoundException;
diff --git a/src/main/java/com/etsy/pushbot/command/DoneCommand.java b/src/main/java/com/etsy/pushbot/command/DoneCommand.java
index 21d0b8a..43a131f 100644
--- a/src/main/java/com/etsy/pushbot/command/DoneCommand.java
+++ b/src/main/java/com/etsy/pushbot/command/DoneCommand.java
@@ -1,9 +1,3 @@
-/**
- * WARNING: This file is under Rodeo scope.
- * You will need to file a Rodeo ticket to make changes.
- * See: http://et.sy/rodeo
- */
-
package com.etsy.pushbot.command;
import com.etsy.ChannelNotFoundException;
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