def roll(args): if args.dice: return dice(" ".join(args.dice)) parser = getattr(roll, SUBPARSER) return parser.format_usage()
def roll(args): if args.dice: return dice(' '.join(args.dice)) parser = getattr(roll, SUBPARSER) return parser.format_usage()
def parser(s, who=None): try: if re.match("roll", s): return dice2.dice(s[4:]) except Exception as e: return "failed:"+str(e)