diff options
Diffstat (limited to 'bot/exts/easter')
| -rw-r--r-- | bot/exts/easter/earth_photos.py | 14 | 
1 files changed, 11 insertions, 3 deletions
| diff --git a/bot/exts/easter/earth_photos.py b/bot/exts/easter/earth_photos.py index 52bbaf36..adae0dcd 100644 --- a/bot/exts/easter/earth_photos.py +++ b/bot/exts/easter/earth_photos.py @@ -20,10 +20,18 @@ 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=' + UnClientId -                ) as r: +                    'https://api.unsplash.com/photos/random?query=earth&client_id=' + UnClientId) as r:                      jsondata = await r.json() -            await ctx.send("Still a placeholder") +                    linksdata = jsondata.get("urls") +                    downloadlinksdata = jsondata.get("links") +                async with session.get( +                    downloadlinksdata.get("download_location") + "?client_id=" + UnClient_id) as er: +                    pass +                await ctx.send("Still a work in progress") +                     +                     +                     +             | 
