diff --git a/files/helpers/const.py b/files/helpers/const.py index 4274002eb..2c5f5862e 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -140,7 +140,8 @@ if SITE_NAME == 'rDrama': PROFANITIES = { 'motherfucker': 'motherlover', - 'fuck': 'frick', + 'fuck': ['frick', 'fudge', 'freak'], + ' ass ': [' butt ', ' backside ', ' bum '], 'shitting': 'pooping', 'lmao': 'lmbo', 'damn': 'darn', diff --git a/files/helpers/regex.py b/files/helpers/regex.py index 0552824c3..12bdc5b9b 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -123,6 +123,8 @@ def sub_matcher(match:re.Match, upper=False, replace_with:Union[dict[str, str], return match_str else: repl = replace_with[match_str.lower()] + if not isinstance(repl, str): + repl = random.choice(repl) return repl if not upper or "