This commit is contained in:
Caleb Denio 2022-07-15 15:38:35 -04:00
parent 659be30408
commit 0a74865977
No known key found for this signature in database
GPG key ID: D2E75BDDE8F717AD

View file

@ -103,7 +103,7 @@ func onMessage(slackClient *slack.Client, event *slackevents.MessageEvent) {
fmt.Printf("Contains 69: %v\n", strings.Contains(strconv.Itoa(matchedNumber), "69"))
}
if event.User == "UR6P49Q79" && time.Since(lastCountAt).Seconds() < 2 && 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,