aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/halloween/spookygif.py
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-05-04 12:57:03 -0400
committerGravatar ToxicKidz <[email protected]>2021-05-04 12:57:03 -0400
commita6cc40ff3b323dff112d7f8c339e124f3a6d9980 (patch)
treef0cdec46d302cfc629fe9277df5cfbe6251a861b /bot/exts/halloween/spookygif.py
parentchore: Don't return a Message object when the return annotation is None (diff)
chore: Prefer double quotes over single quotes
Diffstat (limited to 'bot/exts/halloween/spookygif.py')
-rw-r--r--bot/exts/halloween/spookygif.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/halloween/spookygif.py b/bot/exts/halloween/spookygif.py
index bfdf2128..ffb91b1b 100644
--- a/bot/exts/halloween/spookygif.py
+++ b/bot/exts/halloween/spookygif.py
@@ -19,11 +19,11 @@ class SpookyGif(commands.Cog):
async def spookygif(self, ctx: commands.Context) -> None:
"""Fetches a random gif from the GIPHY API and responds with it."""
async with ctx.typing():
- params = {'api_key': Tokens.giphy, 'tag': 'halloween', 'rating': 'g'}
+ params = {"api_key": Tokens.giphy, "tag": "halloween", "rating": "g"}
# Make a GET request to the Giphy API to get a random halloween gif.
- async with self.bot.http_session.get('http://api.giphy.com/v1/gifs/random', params=params) as resp:
+ async with self.bot.http_session.get("http://api.giphy.com/v1/gifs/random", params=params) as resp:
data = await resp.json()
- url = data['data']['image_url']
+ url = data["data"]["image_url"]
embed = discord.Embed(colour=0x9b59b6)
embed.title = "A spooooky gif!"