diff options
author | 2021-10-09 20:01:35 +0300 | |
---|---|---|
committer | 2021-10-09 20:01:35 +0300 | |
commit | 3451c96b065a24c3562c8b236b711ec91bb97a39 (patch) | |
tree | 0eb01f42600e62ba86b8d80f31b19caa451914f3 /bot/exts/fun | |
parent | Update bot/exts/fun/uwu.py (diff) |
Update bot/exts/fun/uwu.py
Co-authored-by: ToxicKidz <[email protected]>
Diffstat (limited to 'bot/exts/fun')
-rw-r--r-- | bot/exts/fun/uwu.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/fun/uwu.py b/bot/exts/fun/uwu.py index 998fd40f..c83dea61 100644 --- a/bot/exts/fun/uwu.py +++ b/bot/exts/fun/uwu.py @@ -77,7 +77,7 @@ class Uwu(Cog): def _stutter_replace(self, match: re.Match, strength: float = 0.0) -> str: """Replaces a single character with a stuttered character.""" - match_string = match.string[slice(*match.span())] + match_string = match.group() if random.random() < strength: return f"{match_string}-{match_string[-1]}" # Stutter the last character return match_string |