mirror of https://github.com/velour/catbase.git
fixing things because of assholes
This commit is contained in:
parent
5d90f7a920
commit
4af719fe5b
|
@ -43,6 +43,10 @@ func (p *DicePlugin) Message(message bot.Message) bool {
|
||||||
dice = strings.Split(parts[1], "d")
|
dice = strings.Split(parts[1], "d")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if dice < 1 || sides < 2 {
|
||||||
|
p.Bot.SendMessage(channel, "You're a dick.")
|
||||||
|
}
|
||||||
|
|
||||||
if len(dice) == 2 {
|
if len(dice) == 2 {
|
||||||
// We actually have a die roll.
|
// We actually have a die roll.
|
||||||
nDice, err := strconv.Atoi(dice[0])
|
nDice, err := strconv.Atoi(dice[0])
|
||||||
|
|
Loading…
Reference in New Issue