aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/holidays/halloween/spookygif.py
diff options
context:
space:
mode:
authorGravatar Xithrius <[email protected]>2022-11-02 02:07:29 -0700
committerGravatar GitHub <[email protected]>2022-11-02 02:07:29 -0700
commit43a2acf5ee4eb354ce3dfaeef9504eee9b9b46b4 (patch)
treecbdfeb08f8d582aa98acec6a529f0fa3dcd7933c /bot/exts/holidays/halloween/spookygif.py
parentAppeased the formatter (diff)
parentMerge pull request #1137 from DivyanshuBist/bug-issue1122-message-of-type-None (diff)
Merge branch 'main' into main
Diffstat (limited to 'bot/exts/holidays/halloween/spookygif.py')
-rw-r--r--bot/exts/holidays/halloween/spookygif.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/holidays/halloween/spookygif.py b/bot/exts/holidays/halloween/spookygif.py
index 9511d407..750e86ca 100644
--- a/bot/exts/holidays/halloween/spookygif.py
+++ b/bot/exts/holidays/halloween/spookygif.py
@@ -25,7 +25,7 @@ class SpookyGif(commands.Cog):
# Make a GET request to the Giphy API to get a random halloween gif.
async with self.bot.http_session.get(API_URL, params=params) as resp:
data = await resp.json()
- url = data["data"]["image_url"]
+ url = data["data"]["images"]["downsized"]["url"]
embed = discord.Embed(title="A spooooky gif!", colour=Colours.purple)
embed.set_image(url=url)
@@ -33,6 +33,6 @@ class SpookyGif(commands.Cog):
await ctx.send(embed=embed)
-def setup(bot: Bot) -> None:
+async def setup(bot: Bot) -> None:
"""Spooky GIF Cog load."""
- bot.add_cog(SpookyGif(bot))
+ await bot.add_cog(SpookyGif(bot))