aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar Gintautas Kazlauskas <[email protected]>2021-10-09 20:01:42 +0300
committerGravatar GitHub <[email protected]>2021-10-09 20:01:42 +0300
commiteac310502cef31105b65eb63447c0d82b1fd6a88 (patch)
tree558d179b8199ddf851ce23ec3c203403ad95afc6 /bot
parentUpdate bot/exts/fun/uwu.py (diff)
Update bot/exts/fun/uwu.py
Co-authored-by: ToxicKidz <[email protected]>
Diffstat (limited to 'bot')
-rw-r--r--bot/exts/fun/uwu.py2
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