aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/easter/earth_photos.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/easter/earth_photos.py b/bot/exts/easter/earth_photos.py
index 8e90c9e7..e3d5936e 100644
--- a/bot/exts/easter/earth_photos.py
+++ b/bot/exts/easter/earth_photos.py
@@ -20,13 +20,13 @@ class EarthPhotos(commands.Cog):
async with ctx.typing():
async with aiohttp.ClientSession as session:
async with session.get(
- 'https://api.unsplash.com/photos/random?query=earth&client_id=' + UnClient_id) as r:
+ 'https://api.unsplash.com/photos/random?query=earth&client_id=' + UnClient_id) as r:
jsondata = await r.json()
linksdata = jsondata.get("urls")
embedlink = linksdata.get("full")
downloadlinksdata = jsondata.get("links")
async with session.get(
- downloadlinksdata.get("download_location") + "?client_id=" + UnClient_id) as er:
+ downloadlinksdata.get("download_location") + "?client_id=" + UnClient_id) as er:
er.status()
embed = discord.Embed(title="In progress")
embed.set_photo(url=embedlink)