diff options
author | 2020-09-24 18:07:48 +0530 | |
---|---|---|
committer | 2020-09-24 18:07:48 +0530 | |
commit | e88bae4a015d1373307610c0e0035bdd30beddd1 (patch) | |
tree | 947b442fe0e0c82c0dd45bb6078ff12084bc3187 | |
parent | added union to month now it take str and and int both (diff) |
handler exception of capricorn
-rw-r--r-- | bot/exts/valentines/valentine_zodiac.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bot/exts/valentines/valentine_zodiac.py b/bot/exts/valentines/valentine_zodiac.py index 6fbce788..60510377 100644 --- a/bot/exts/valentines/valentine_zodiac.py +++ b/bot/exts/valentines/valentine_zodiac.py @@ -95,6 +95,12 @@ class ValentineZodiac(commands.Cog): else: await ctx.send("Sorry, but you have given wrong Month name") return + if month == 1 or month == 12: + if date >= 1 and date <= 19 or date >= 22 and date <= 31: + zodiac = "Capricorn" + final_embed = self.zodiac_sign_verify(zodiac) + await ctx.send(embed=final_embed) + return try: zodiac_sign_based_on_month_and_date = self.zodiac_date_verifer(datetime(2020, month, date)) log.info("zodiac sign based on month and date received") |