--- a/rollbot.py Fri Jun 03 11:23:45 2016 +0800
+++ b/rollbot.py Fri Jun 03 11:36:03 2016 +0800
times = match.group('times')
- sides = match.group('sides')
+ sides = int(match.group('sides'))
if times > 0 and sides > 1:
- rolls, total = self.roll(int(times), int(sides))
+ rolls, total = self.roll(times, sides)
return self.format(rolls, total)
return '%s usage: %s' % (self.name, self.usage())