From bba60141670810b85c2e4d56202e60c2df3af9b7 Mon Sep 17 00:00:00 2001 From: Kreusada <67752638+Kreusada@users.noreply.github.com> Date: Sat, 23 Nov 2024 16:37:03 +0000 Subject: [PATCH] [Quotes] v1.3.0 Use zenquotes.io --- quotes/quotes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quotes/quotes.py b/quotes/quotes.py index fed432d19..51d639282 100644 --- a/quotes/quotes.py +++ b/quotes/quotes.py @@ -9,12 +9,12 @@ class Quotes(commands.Cog): """Get a random quote.""" - __version__ = "1.2.0" + __version__ = "1.3.0" __author__ = "Kreusada" def __init__(self, bot: Red): self.bot = bot - self.api = "http://api.quotable.io/random" + self.api = "https://zenquotes.io/api/random" self.session = aiohttp.ClientSession() async def cog_unload(self): @@ -38,4 +38,4 @@ async def quote(self, ctx: commands.Context): except ssl.SSLCertVerificationError: await ctx.send(warning("Unable to connect to the quotes API.")) return - await ctx.send(f"From **{content['author']}**\n{content['content']}") + await ctx.send(f"From **{content['a']}**\n{content['q']}")