aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Kronifer <[email protected]>2021-03-03 22:27:37 +0000
committerGravatar Kronifer <[email protected]>2021-03-03 22:27:37 +0000
commit6c46dca3525758f1c1841f1dba312bb45c28531e (patch)
tree8ee499e0723e7a3e584d846900f031af5cf39090
parentlocked pipfile (diff)
minor change to getting image
-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 a49e666c..66780f6a 100644
--- a/bot/exts/easter/earth_photos.py
+++ b/bot/exts/easter/earth_photos.py
@@ -19,10 +19,10 @@ class EarthPhotos(commands.Cog):
async with ctx.typing():
async with self.bot.http_session.get(
'https://api.unsplash.com/photos/random',
- params={"query": "planet_earth", "client_id": UnClient_id}) as r:
+ params={"query": "earth", "client_id": UnClient_id}) as r:
jsondata = await r.json()
linksdata = jsondata.get("urls")
- embedlink = linksdata.get("full")
+ embedlink = linksdata.get("regular")
downloadlinksdata = jsondata.get("links")
userdata = jsondata.get("user")
username = userdata.get("name")