From 2d93d427c2f6f5f77b0e8b8fd5bfd0f1407670a2 Mon Sep 17 00:00:00 2001 From: Khinshan Khan Date: Sun, 9 Mar 2025 11:24:11 -0400 Subject: [PATCH] fix bad math typo --- cmd/bot/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bot/main.go b/cmd/bot/main.go index 54c1a46..3a90826 100644 --- a/cmd/bot/main.go +++ b/cmd/bot/main.go @@ -134,7 +134,7 @@ func startScheduler(s *discordgo.Session, channelID string) { go deleteMessageAfterDelay(discordMessage, s, channelID) } - randomDuration = time.Duration(rand.Intn(SendMessageIntervalMin)+(SendMessageIntervalMax-SendMessageIntervalMin)) * SendMessageUnit + randomDuration = time.Duration(rand.Intn(SendMessageIntervalMax-SendMessageIntervalMin)+(SendMessageIntervalMin)) * SendMessageUnit log.Printf("[!] Next message in %v", randomDuration) } }