diff options
| author | 2022-02-23 13:06:00 -0600 | |
|---|---|---|
| committer | 2022-02-23 13:06:00 -0600 | |
| commit | 086103cd19ff36658e7e160d6fd07317252910ab (patch) | |
| tree | ccfb32e63f404815c15356393f5b2fde38164fdd /bot | |
| parent | rename variables (diff) | |
Use random.choice to select an item from a list
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 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: |