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