Skip to content

Commit

Permalink
[Quotes] v1.3.0 Use zenquotes.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreusada committed Nov 23, 2024
1 parent 9f8a7ba commit bba6014
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions quotes/quotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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']}")

0 comments on commit bba6014

Please sign in to comment.