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