From 3451c96b065a24c3562c8b236b711ec91bb97a39 Mon Sep 17 00:00:00 2001 From: Gintautas Kazlauskas <53479485+gitautas@users.noreply.github.com> Date: Sat, 9 Oct 2021 20:01:35 +0300 Subject: Update bot/exts/fun/uwu.py Co-authored-by: ToxicKidz <78174417+ToxicKidz@users.noreply.github.com> --- bot/exts/fun/uwu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3