async def horoscope(self, ctx, *, sign: commands.clean_content): """ Find out your horoscope for this week """ sign = sign.title() horos = { "Aquarius": "♒", "Aries": "♈", "Cancer": "♋", "Capricorn": "♑", "Gemini": "♊", "Leo": "♌", "Libra": "♎", "Scorpius": "♏", "Scorpio": "♏", "Sagittarius": "♐", "Pisces": "♓", "Taurus": "♉", "Virgo": "♍", } # Get Sunday Just Gone. sun = datetime.datetime.now().date() - datetime.timedelta( days=datetime.datetime.now().weekday() + 1) # Get Saturday Coming sat = sun + datetime.timedelta(days=6) sunstring = sun.strftime('%a %d %B %Y') satstring = sat.strftime('%a %d %B %Y') e = discord.Embed() e.colour = 0x7289DA e.description = "*\"The stars and planets will not affect your life in any way\"*" try: e.title = f"{horos[sign]} {sign}" except KeyError: e.title = f"{sign} {sign}" ftstr = f"Horoscope for {sunstring} - {satstring}" e.set_footer(text=ftstr) await ctx.send(embed=e)
async def title(self, ctx, *, text: commands.clean_content): """Outputs text Like A Title.""" output = await commands.clean_content().convert(ctx, text.title()) await ctx.send(output)