Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #Dice roll game
  2. elif used_prefix and cmd=="roll" and self.getAccess(user)>=1:
  3. if len(args)>0:
  4. if args.isdigit():
  5. for x in args:
  6. dice.append(random.randint(int(args), int(args) * 6))
  7. cleandice = str(dice).replace("[","").replace("]","")
  8. room.message(str(noNick(user.name))+" rolled "+args+" dice and got "+cleandice, True)
  9. dice.clear()
  10. else:
  11. room.message("The dice roll must be a number, try again.")
  12. else:
  13. room.message("This command requires arguments.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement