From a5dbafa82b2a632dbeb0428255ff8b0fb6a9f69a Mon Sep 17 00:00:00 2001 From: Gintautas Kazlauskas <53479485+gitautas@users.noreply.github.com> Date: Sat, 9 Oct 2021 20:00:39 +0300 Subject: Update bot/exts/fun/uwu.py Co-authored-by: Bluenix --- bot/exts/fun/uwu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/exts/fun/uwu.py b/bot/exts/fun/uwu.py index 46e8dd62..4ad19c82 100644 --- a/bot/exts/fun/uwu.py +++ b/bot/exts/fun/uwu.py @@ -63,8 +63,8 @@ class Uwu(Cog): def _word_replace(self, input_string: str) -> str: """Replaces words that are keys in the word replacement hash to the values specified.""" - for word in WORD_REPLACE_HASH: - input_string = input_string.replace(word, WORD_REPLACE_HASH[word]) + for word, replacement in WORD_REPLACE_HASH.items(): + input_string = input_string.replace(word, replacement) return input_string def _char_replace(self, input_string: str) -> str: -- cgit v1.2.3