mirror of
https://github.com/cjdenio/jia.git
synced 2024-11-25 17:13:56 +00:00
better kog detection
This commit is contained in:
parent
ce3d88f4a4
commit
a635479dfc
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ func onMessage(slackClient *slack.Client, event *slackevents.MessageEvent) {
|
||||||
}
|
}
|
||||||
lastCountAt := time.Unix(lastCountAtInt, 0)
|
lastCountAt := time.Unix(lastCountAtInt, 0)
|
||||||
|
|
||||||
if event.User == "UR6P49Q79" && time.Since(lastCountAt).Seconds() < 2 && strings.Contains(lastValidNumberStr, "69") {
|
if event.User == "UR6P49Q79" && time.Since(lastCountAt).Seconds() < 2 && strings.Contains(strconv.Itoa(matchedNumber), "69") {
|
||||||
slackClient.AddReaction("bangbang", slack.ItemRef{
|
slackClient.AddReaction("bangbang", slack.ItemRef{
|
||||||
Channel: event.Channel,
|
Channel: event.Channel,
|
||||||
Timestamp: event.TimeStamp,
|
Timestamp: event.TimeStamp,
|
||||||
|
|
Loading…
Reference in a new issue