diff options
Diffstat (limited to 'bot')
| -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 c83dea61..538c72cb 100644 --- a/bot/exts/fun/uwu.py +++ b/bot/exts/fun/uwu.py @@ -92,7 +92,7 @@ class Uwu(Cog): def _emoji_replace(self, match: re.Match, strength: float = 0.0) -> str: """Replaces a punctuation character with an emoticon.""" - match_string = match.string[slice(*match.span())] + match_string = match.group() if random.random() < strength: return f" {EMOJI_LUT[random.randint(0, len(EMOJI_LUT) - 1)]} " return match_string |