Skip to content

Commit

Permalink
xd
Browse files Browse the repository at this point in the history
  • Loading branch information
pajlada committed Aug 21, 2024
1 parent f909da3 commit 911fc7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/commands/roll/roll.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down

0 comments on commit 911fc7d

Please sign in to comment.