From 780e32fcc6f51511ec2deb1a510963e3e72df0b2 Mon Sep 17 00:00:00 2001 From: Nikolaj Danger Date: Tue, 24 Mar 2020 15:31:39 +0100 Subject: [PATCH] Packaging and testing --- funcs/gwendolynFuncs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funcs/gwendolynFuncs.py b/funcs/gwendolynFuncs.py index eb3316f..67428f3 100644 --- a/funcs/gwendolynFuncs.py +++ b/funcs/gwendolynFuncs.py @@ -19,7 +19,7 @@ def roll_dice(author : str, rollStr : str = "1d20"): adv = 0 if re.search('(^|\s+)(adv|dis)(\s+|$)', rollStr) is not None: adv = 1 if re.search('(^|\s+)adv(\s+|$)', rollStr) is not None else -1 - rollStr = re.sub('(adv|dis)(\s+|$)', '', rollSt + rollStr = re.sub('(adv|dis)(\s+|$)', '', rollStr) res = dice.roll(rollStr, adv=adv) out = res.result outStr = author + ' :game_die:\n' + out