From 911fc7d8ca1489e44d9256d4c89e1f55bf739ee8 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Wed, 21 Aug 2024 22:27:14 +0200 Subject: [PATCH] xd --- internal/commands/roll/roll.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/commands/roll/roll.go b/internal/commands/roll/roll.go index 4238660..324158c 100644 --- a/internal/commands/roll/roll.go +++ b/internal/commands/roll/roll.go @@ -33,7 +33,7 @@ func (c *Command) Run(s *discordgo.Session, m *discordgo.MessageCreate, parts [] if len(parts) >= 2 { number, err := strconv.Atoi(parts[1]) if err == nil && number >= 2 { - v := 1 + rand.Intn(number-2) + v := 1 + rand.Intn(number-1) response := discordgo.MessageSend{ Content: fmt.Sprintf("%s, %d", m.Author.Mention(), v), }