Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Dice roll game
- elif used_prefix and cmd=="roll" and self.getAccess(user)>=1:
- if len(args)>0:
- if args.isdigit():
- for x in args:
- dice.append(random.randint(int(args), int(args) * 6))
- cleandice = str(dice).replace("[","").replace("]","")
- room.message(str(noNick(user.name))+" rolled "+args+" dice and got "+cleandice, True)
- dice.clear()
- else:
- room.message("The dice roll must be a number, try again.")
- else:
- room.message("This command requires arguments.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement