diff options
| author | 2020-09-24 17:04:15 +0530 | |
|---|---|---|
| committer | 2020-09-24 17:04:15 +0530 | |
| commit | ef6bc8a23a7f49e90e2317f53a4cdb89d8c838dc (patch) | |
| tree | 5225399524855fb6192bd2f806ed96292df2e815 /bot | |
| parent | corrected order of logging (diff) | |
chaanged partnerzodiac group to zodiac group
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/valentines/valentine_zodiac.py | 50 | 
1 files changed, 25 insertions, 25 deletions
| diff --git a/bot/exts/valentines/valentine_zodiac.py b/bot/exts/valentines/valentine_zodiac.py index 12ecf2f8..38ccdf10 100644 --- a/bot/exts/valentines/valentine_zodiac.py +++ b/bot/exts/valentines/valentine_zodiac.py @@ -71,37 +71,14 @@ class ValentineZodiac(commands.Cog):          log.info("Zodiac name sent")          return zodiac -    @commands.group(name="partnerzodiac", invoke_without_command=True) -    async def partner_zodiac(self, ctx: commands.Context, zodiac_sign: str) -> None: -        """Provides a counter compatible zodiac sign to the given user's zodiac sign.""" -        try: -            compatible_zodiac = random.choice(self.zodiacs[zodiac_sign.lower()]) -        except KeyError: -            await ctx.send(f"`{zodiac_sign.capitalize()}` zodiac sign does not exist.") -            return - -        emoji1 = random.choice(HEART_EMOJIS) -        emoji2 = random.choice(HEART_EMOJIS) -        embed = discord.Embed( -            title="Zodic Compatibility", -            description=f'{zodiac_sign.capitalize()}{emoji1}{compatible_zodiac["Zodiac"]}\n' -                        f'{emoji2}Compatibility meter : {compatible_zodiac["compatibility_score"]}{emoji2}', -            color=Colours.pink -        ) -        embed.add_field( -            name=f'A letter from Dr.Zodiac {LETTER_EMOJI}', -            value=compatible_zodiac['description'] -        ) -        await ctx.send(embed=embed) - -    @partner_zodiac.command(name='zodiac') +    @commands.group(name='zodiac', invoke_without_command=True)      async def zodiac(self, ctx: commands.Context, zodiac_sign: str) -> None:          """Provides information about zodiac sign by taking zodiac sign name as input."""          final_embed = self.zodiac_sign_verify(zodiac_sign)          log.info("Embed successfully sent")          await ctx.send(embed=final_embed) -    @partner_zodiac.command(name="date") +    @zodiac.command(name="date")      async def date_and_month(self, ctx: commands.Context, month: int, date: int) -> None:          """Provides information about zodiac sign by taking month and date as input."""          try: @@ -119,6 +96,29 @@ class ValentineZodiac(commands.Cog):              log.info("zodiac sign embed based on month and date is now sent")          await ctx.send(embed=final_embed) +    @zodiac.command(name="partnerzodiac") +    async def partner_zodiac(self, ctx: commands.Context, zodiac_sign: str) -> None: +        """Provides a counter compatible zodiac sign to the given user's zodiac sign.""" +        try: +            compatible_zodiac = random.choice(self.zodiacs[zodiac_sign.lower()]) +        except KeyError: +            await ctx.send(f"`{zodiac_sign.capitalize()}` zodiac sign does not exist.") +            return + +        emoji1 = random.choice(HEART_EMOJIS) +        emoji2 = random.choice(HEART_EMOJIS) +        embed = discord.Embed( +            title="Zodic Compatibility", +            description=f'{zodiac_sign.capitalize()}{emoji1}{compatible_zodiac["Zodiac"]}\n' +                        f'{emoji2}Compatibility meter : {compatible_zodiac["compatibility_score"]}{emoji2}', +            color=Colours.pink +        ) +        embed.add_field( +            name=f'A letter from Dr.Zodiac {LETTER_EMOJI}', +            value=compatible_zodiac['description'] +        ) +        await ctx.send(embed=embed) +  def setup(bot: commands.Bot) -> None:      """Valentine zodiac Cog load.""" | 
