aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Kronifer <[email protected]>2021-03-02 22:04:47 -0600
committerGravatar Kronifer <[email protected]>2021-03-02 22:04:47 -0600
commit286d40bb887246216da23857b4eeb8364fcbf9c7 (patch)
tree765d6fed56ecb90a49d488e90f9fdfc8c35b9998
parentUpdate earth_photos.py (diff)
linting changes
-rw-r--r--bot/exts/easter/earth_photos.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bot/exts/easter/earth_photos.py b/bot/exts/easter/earth_photos.py
index 2ca43e42..e660112f 100644
--- a/bot/exts/easter/earth_photos.py
+++ b/bot/exts/easter/earth_photos.py
@@ -1,8 +1,10 @@
import discord
-from discord.ext import commands
import logging
+from discord.ext import commands
+
+
import requests
from bot.constants import Tokens
@@ -22,9 +24,7 @@ class EarthPhotos(commands.Cog):
@commands.command(aliases=["earth"])
async def earth_photos(self, ctx: commands.Context):
- """
- Returns a random photo of earth, sourced from Unsplash.
- """
+ """Returns a random photo of earth, sourced from Unsplash."""
photorequest = requests.get("https://api.unsplash.com/photos/random?query=earth&client_id=" + UnClient_id)
photojson = photorequest.json()
photourls = photojson.get('urls')