From 6f1223cd844838e3d3656fbd1e787a5937c91000 Mon Sep 17 00:00:00 2001 From: Caleb Denio Date: Tue, 23 Aug 2022 15:38:19 -0400 Subject: [PATCH] Revert "celesteblocker" This reverts commit 33af99f6b6fa6e135a893de13bc120a9e72af54f. --- pkg/jia/handlers.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/jia/handlers.go b/pkg/jia/handlers.go index 4032d9b..3ae2309 100644 --- a/pkg/jia/handlers.go +++ b/pkg/jia/handlers.go @@ -90,20 +90,20 @@ func onMessage(slackClient *slack.Client, event *slackevents.MessageEvent) { return } - // kog + celeste detection + // kog detection lastCountAtInt, err := redisClient.Get("last_count_at").Int64() if err != nil { log.Println(err) } lastCountAt := time.Unix(lastCountAtInt, 0) - if event.User == "UR6P49Q79" || event.User == "U02KYLBLKR9" { - fmt.Println("kogcelestebot detected.") + if event.User == "UR6P49Q79" { + fmt.Println("Kogbot detected.") fmt.Printf("Time: %v\n", time.Since(lastCountAt).Seconds()) fmt.Printf("Contains 69: %v\n", strings.Contains(strconv.Itoa(matchedNumber), "69")) } - if (event.User == "UR6P49Q79" || event.User == "U02KYLBLKR9") && time.Since(lastCountAt).Seconds() < 4 /* && strings.Contains(strconv.Itoa(matchedNumber), "69") */ { + if event.User == "UR6P49Q79" && time.Since(lastCountAt).Seconds() < 4 && strings.Contains(strconv.Itoa(matchedNumber), "69") { slackClient.AddReaction("bangbang", slack.ItemRef{ Channel: event.Channel, Timestamp: event.TimeStamp,