From cc4361a48632039a76ac93beadb328302230335a Mon Sep 17 00:00:00 2001 From: okseby Date: Wed, 30 Aug 2023 22:47:47 -0400 Subject: [PATCH] Add unicode emoji thumbs up to list of detected comment bodies --- bot/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/utils.go b/bot/utils.go index eb84569..f7ad883 100644 --- a/bot/utils.go +++ b/bot/utils.go @@ -88,7 +88,7 @@ func webhookHandler(w http.ResponseWriter, r *http.Request) { log.Println("User type:", userType, "Comment body:", commentBody) - if !strings.Contains(userType, "bot") && strings.Contains(commentBody, "+1") { + if !strings.Contains(userType, "bot") && (strings.Contains(commentBody, "+1") || strings.Contains(commentBody, "👍")) { log.Println("Received Issue Comment Event: processing now!") processIssueCommentEvent(event) break