1
0
Fork 0
mirror of synced 2024-05-20 12:32:26 +12:00

Added another check to ensure the sides of the dice is higher than 1

This commit is contained in:
Phxntxm 2016-10-15 14:43:45 -05:00
parent e02e9ae3ed
commit 1743920b43

View file

@ -228,6 +228,9 @@ class Core:
if num > 100:
await self.bot.say("What die has more than 100 sides? Please, calm down")
return
if num <= 1:
await self.bot.say("A {} sided die? You know that's impossible right?".format(num))
return
value_str = ", ".join(str(random.SystemRandom().randint(1, num))
for i in range(0, int(dice)))