aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar Bradley Reynolds <[email protected]>2022-02-23 13:06:00 -0600
committerGravatar Bradley Reynolds <[email protected]>2022-02-23 13:06:00 -0600
commit086103cd19ff36658e7e160d6fd07317252910ab (patch)
treeccfb32e63f404815c15356393f5b2fde38164fdd /bot
parentrename variables (diff)
Use random.choice to select an item from a list
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 a5220e54..13fb11e5 100644
--- a/bot/exts/fun/uwu.py
+++ b/bot/exts/fun/uwu.py
@@ -93,7 +93,7 @@ class Uwu(Cog):
"""Replaces a punctuation character with an emoticon."""
match_string = match.group()
if random.random() < strength:
- return f" {EMOJIS[random.randint(0, len(EMOJIS) - 1)]} "
+ return f" {random.choice(EMOJIS)} "
return match_string
def _uwuify(self, input_string: str, *, stutter_strength: float = 0.2, emoji_strength: float = 0.1) -> str: