.format
This commit is contained in:
parent
2812569593
commit
7ab4f756fe
22 changed files with 69 additions and 78 deletions
|
@ -84,6 +84,6 @@ def dice(inp):
|
|||
return "Thanks for overflowing a float, jerk >:["
|
||||
|
||||
if desc:
|
||||
return "%s: %d (%s)" % (desc.strip(), total, ", ".join(rolls))
|
||||
return "{}: {} ({})".format(desc.strip(), total, ", ".join(rolls))
|
||||
else:
|
||||
return "%d (%s)" % (total, ", ".join(rolls))
|
||||
return "{} ({})".format(total, ", ".join(rolls))
|
||||
|
|
Reference in a new issue