Don't react to messages with a valid number

This commit is contained in:
Victor Truong 2020-07-27 03:35:38 -07:00
parent c103e9e4fc
commit 3385ce07bb

View file

@ -66,8 +66,4 @@ func onMessage(slackClient *slack.Client, event *slackevents.MessageEvent) {
// Finally! // Finally!
lastValidNumber = matchedNumber lastValidNumber = matchedNumber
lastSender = event.User lastSender = event.User
slackClient.AddReaction("+1", slack.ItemRef{
Channel: event.Channel,
Timestamp: event.TimeStamp,
})
} }