cypher: slightly better display of output with no difficulty or mods
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
@@ -76,7 +76,7 @@ class Dice(Plugin):
|
||||
# show the adjusted difficulty
|
||||
detail_str = f"14(d20={result} vs. diff. {difficulty}{mods})"
|
||||
else:
|
||||
detail_str = f"14(d20={result} with {mods} levels)"
|
||||
detail_str = f"14(d20={result}{f' with {mods} levels' if mods else ''})"
|
||||
|
||||
if comment:
|
||||
return self.bot.reply(event, f"{nick}: {comment} {result_str} {detail_str}")
|
||||
|
||||
Reference in New Issue
Block a user