Skip to content

Commit 2551b79

Browse files
authored
Update message_reactor.go
Tweak freq Signed-off-by: Zee Aslam <[email protected]>
1 parent 2769d6f commit 2551b79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot/asynchandlers/message_reactor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func (mr *MessageReactor) ShouldAddReaction(s *discordgo.Session, m *discordgo.M
5656
return false
5757
}
5858
if len(m.Mentions) > 0 {
59-
return rand.Float64() < 0.7
59+
return rand.Float64() < 0.55
6060
}
6161
if m.GuildID == "" {
6262
// Implies a DM
@@ -110,7 +110,7 @@ func (mr *MessageReactor) ShouldAddReaction(s *discordgo.Session, m *discordgo.M
110110
logger.Debug("time difference between messages", zap.Duration("timeDiff", timeDiff))
111111
if timeDiff < 7*time.Minute {
112112
_ = mr.ReactToMessage(s, lastMessage)
113-
return rand.Float64() < 0.6
113+
return rand.Float64() < 0.55
114114
}
115115
}
116116
return rand.Float64() < 0.4

0 commit comments

Comments
 (0)