aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anubhav1603 <[email protected]>2020-10-01 22:43:05 +0530
committerGravatar Anubhav1603 <[email protected]>2020-10-01 22:43:05 +0530
commit9be31c8d5aa5c5aba06340b4f646b82855635a54 (patch)
treed16428c4461a64e4707c8d72be2f5a5e4e3585b3
parentUpdate bot/exts/valentines/valentine_zodiac.py (diff)
modified error message
-rw-r--r--bot/exts/valentines/valentine_zodiac.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/valentines/valentine_zodiac.py b/bot/exts/valentines/valentine_zodiac.py
index 688bb8eb..3049540d 100644
--- a/bot/exts/valentines/valentine_zodiac.py
+++ b/bot/exts/valentines/valentine_zodiac.py
@@ -45,8 +45,9 @@ class ValentineZodiac(commands.Cog):
embed = discord.Embed()
embed.color = Colours.soft_red
error_msg = f"**{zodiac}** is not a valid zodiac sign, here is the list of valid zodiac signs.\n"
- valid_zodiac_name = ", ".join(self.zodiac_fact).replace("Leo, ", "Leo,\n")
- embed.description = error_msg + valid_zodiac_name
+ first_part_of_valid_name_list = ", ".join(name for name in list(self.zodiac_fact.keys())[:7])
+ end_part_of_valid_name_list = ", ".join(name for name in list(self.zodiac_fact.keys())[7:])
+ embed.description = error_msg + first_part_of_valid_name_list + ",\n" + end_part_of_valid_name_list
log.info("Invalid zodiac name provided.")
return embed