From 541001d3c869d42873b3cbf614da2affcde33f7b Mon Sep 17 00:00:00 2001 From: Mallory Hancock Date: Tue, 6 Feb 2018 16:43:45 -0800 Subject: [PATCH] forgot to do modifier --- examples/irc/plugins/dice.py | 2 +- examples/twitch/plugins/dice.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/irc/plugins/dice.py b/examples/irc/plugins/dice.py index 425266b..56a9ae5 100644 --- a/examples/irc/plugins/dice.py +++ b/examples/irc/plugins/dice.py @@ -12,7 +12,7 @@ def build_output(rolls, modifier): all_rolls = ''.join([str(i)+', ' for i in rolls]).strip(', ') start = '{} = {}'.format(all_rolls, sum(rolls)) if modifier: - output = start + ' + {} = '.format(modifier) + output = start + ' + {} = {}'.format(modifier, sum(rolls) + int(modifier)) else: output = start return output diff --git a/examples/twitch/plugins/dice.py b/examples/twitch/plugins/dice.py index 425266b..56a9ae5 100644 --- a/examples/twitch/plugins/dice.py +++ b/examples/twitch/plugins/dice.py @@ -12,7 +12,7 @@ def build_output(rolls, modifier): all_rolls = ''.join([str(i)+', ' for i in rolls]).strip(', ') start = '{} = {}'.format(all_rolls, sum(rolls)) if modifier: - output = start + ' + {} = '.format(modifier) + output = start + ' + {} = {}'.format(modifier, sum(rolls) + int(modifier)) else: output = start return output