no negative candy for indebted users
This commit is contained in:
parent
f471ee2734
commit
e079438254
3
main.go
3
main.go
|
@ -749,6 +749,9 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
|
|||
candyvalue *= multiplier
|
||||
candystr = "+" + fmt.Sprint(candyvalue)
|
||||
} else if m.Embeds[0].Footer.Text != "candyChaos" {
|
||||
if usercandy < 0 {
|
||||
candyvalue = int(math.Abs(float64(candyvalue)))
|
||||
}
|
||||
candystr = fmt.Sprint(candyvalue)
|
||||
} else {
|
||||
multiplier = rand.Intn(21) - 10
|
||||
|
|
Loading…
Reference in New Issue