aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-04-20 12:59:46 -0400
committerGravatar ToxicKidz <[email protected]>2021-04-20 12:59:46 -0400
commit3477069a3a2e0b5e4030602afa4a4c0e7411a7e1 (patch)
tree7d2a4a0d539ab3f6cf6f1505928b4254e500c512
parentchore: Fix UnboundLocalError and discord.ForbiddenErrors in the catify command (diff)
chore: lower the input to fine more cats
-rw-r--r--bot/exts/evergreen/catify.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bot/exts/evergreen/catify.py b/bot/exts/evergreen/catify.py
index c409ce6c..262c75bd 100644
--- a/bot/exts/evergreen/catify.py
+++ b/bot/exts/evergreen/catify.py
@@ -52,11 +52,12 @@ class Catify(commands.Cog):
string_list = text.split()
for index, name in enumerate(string_list):
- if "cat" in name:
+ name = name.lower()
+ if "cat" in text:
if random.randint(0, 5) == 5:
- string_list[index] = name.replace("cat", f"**{random.choice(Cats.cats)}**")
+ string_list[index] = text.replace("cat", f"**{random.choice(Cats.cats)}**")
else:
- string_list[index] = name.replace("cat", random.choice(Cats.cats))
+ string_list[index] = text.replace("cat", random.choice(Cats.cats))
for element in Cats.cats:
if element in name:
string_list[index] = name.replace(element, "cat")