aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gintautas Kazlauskas <[email protected]>2021-10-09 20:01:07 +0300
committerGravatar GitHub <[email protected]>2021-10-09 20:01:07 +0300
commit529a65485140994e08415365e705066da9cba630 (patch)
tree8c11898afa29f8678cd579eab3ae576d78408fea
parentUpdate bot/exts/fun/uwu.py (diff)
Update bot/exts/fun/uwu.py
Co-authored-by: Bluenix <[email protected]>
-rw-r--r--bot/exts/fun/uwu.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/exts/fun/uwu.py b/bot/exts/fun/uwu.py
index 3608096c..a0b664e9 100644
--- a/bot/exts/fun/uwu.py
+++ b/bot/exts/fun/uwu.py
@@ -79,8 +79,7 @@ class Uwu(Cog):
"""Replaces a single character with a stuttered character."""
match_string = match.string[slice(*match.span())]
if random.random() < strength:
- char = match_string[-1]
- return f"{match_string}-{char}"
+ return f"{match_string}-{match_string[-1]}" # Stutter the last character
return match_string
def _nyaify(self, input_string: str) -> str: