diff --git a/plugins/dice.go b/plugins/dice.go index a3898cc..ab4dc13 100644 --- a/plugins/dice.go +++ b/plugins/dice.go @@ -43,6 +43,10 @@ func (p *DicePlugin) Message(message bot.Message) bool { dice = strings.Split(parts[1], "d") } + if dice < 1 || sides < 2 { + p.Bot.SendMessage(channel, "You're a dick.") + } + if len(dice) == 2 { // We actually have a die roll. nDice, err := strconv.Atoi(dice[0])