[Hunting] add support of animals ending with s (#134)

This commit is contained in:
Fixator10
2020-07-06 19:03:43 +04:00
committed by GitHub
parent 86065aa017
commit e698ae07c5

View File

@@ -180,7 +180,7 @@ class Hunting(commands.Cog):
for animal in score.items():
total = total + animal[1]
if animal[1] == 1:
if animal[1] == 1 or animal[0][-1] == "s":
kill_list.append(f"{animal[1]} {animal[0].capitalize()}")
else:
kill_list.append(f"{animal[1]} {animal[0].capitalize()}s")