Skip to content

Commit

Permalink
Attempt to correct output spacing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
treetrnk committed Oct 14, 2016
1 parent 76606d4 commit d734a39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def roll(self):
for i in pair:
dice = re.search(r'(\d*)d([0-9fF]+)', str(i))
if dice:
result.append('(')
# Set number of dice to roll
if len(dice.group(1)):
loop_num = eval(str(dice.group(1)))
Expand All @@ -132,7 +133,9 @@ def roll(self):
loop_num -= 1

result.append(current_die_results)
result.append(')')
else:
result.append(' ')
result.append(i)

print(result)
Expand Down

0 comments on commit d734a39

Please sign in to comment.