mirror of https://github.com/velour/catbase.git
more dick checking
This commit is contained in:
parent
a887d0bba9
commit
ce94b0b258
|
@ -46,7 +46,7 @@ func (p *DicePlugin) Message(message bot.Message) bool {
|
|||
if len(dice) == 2 {
|
||||
// We actually have a die roll.
|
||||
nDice, err := strconv.Atoi(dice[0])
|
||||
if err != nil || nDice < 1 {
|
||||
if err != nil || nDice < 1 || nDice > 20 {
|
||||
p.Bot.SendMessage(channel, "You're a dick.")
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue