|
|
@@ -98,6 +98,8 @@ def do_command(self, connection, event):
|
|
|
return
|
|
|
if diceamount == 0:
|
|
|
connection.privmsg(replyto, "Rolling " + bold + "no " + reset + "dice.")
|
|
|
+ elif diceamount > 10:
|
|
|
+ connection.action(replyto, "can not fit that many dice into it's robot hands.")
|
|
|
else:
|
|
|
connection.privmsg(replyto, ", ".join(str(rolls) for rolls in GameHelpers.roll_dice(diceamount, 6)) + ".") # Roll x amount of dice.
|
|
|
elif arguments == 2:
|
|
|
@@ -115,6 +117,8 @@ def do_command(self, connection, event):
|
|
|
connection.privmsg(replyto, "Rolling " + bold + "no " + reset + "dice.")
|
|
|
elif dicetype == 0 :
|
|
|
connection.action(replyto, "can not create objects with less then one side.")
|
|
|
+ elif diceamount > 10:
|
|
|
+ connection.action(replyto, "can not fit that many dice into it's robot hands.")
|
|
|
else:
|
|
|
connection.privmsg(replyto, ", ".join(str(rolls) for rolls in GameHelpers.roll_dice(diceamount, dicetype)) + ".") # Roll x amount of x type dice.
|
|
|
else: # Invalid amount of arguments.
|