mirror of
https://github.com/cjdenio/jia.git
synced 2024-11-25 00:53:39 +00:00
oh yeah
This commit is contained in:
parent
659be30408
commit
0a74865977
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ func onMessage(slackClient *slack.Client, event *slackevents.MessageEvent) {
|
||||||
fmt.Printf("Contains 69: %v\n", strings.Contains(strconv.Itoa(matchedNumber), "69"))
|
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{
|
slackClient.AddReaction("bangbang", slack.ItemRef{
|
||||||
Channel: event.Channel,
|
Channel: event.Channel,
|
||||||
Timestamp: event.TimeStamp,
|
Timestamp: event.TimeStamp,
|
||||||
|
|
Loading…
Reference in a new issue