diff --git a/pkg/jia/handlers.go b/pkg/jia/handlers.go index 98effdb..553a250 100644 --- a/pkg/jia/handlers.go +++ b/pkg/jia/handlers.go @@ -24,6 +24,11 @@ func onMessage(slackClient *slack.Client, event *slackevents.MessageEvent) { return } + // Ignore threaded messages. + if event.ThreadTimeStamp != "" { + return + } + // Attempt to extract a positive number at the start of a string. countPattern := regexp.MustCompile(`^\d+`) matchedNumber, err := strconv.Atoi(countPattern.FindString(event.Text))