diff options
author | 2021-03-03 16:39:05 +0000 | |
---|---|---|
committer | 2021-03-03 16:39:05 +0000 | |
commit | 3b0949c96926fa30aa650bfd9c9a43e4fd52521f (patch) | |
tree | 3278dae6ac2a028be6c8ae0d9658f801966298ab /bot | |
parent | asyncio start (diff) |
linting
Diffstat (limited to 'bot')
-rw-r--r-- | bot/exts/easter/earth_photos.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/bot/exts/easter/earth_photos.py b/bot/exts/easter/earth_photos.py index 26beda79..8e90c9e7 100644 --- a/bot/exts/easter/earth_photos.py +++ b/bot/exts/easter/earth_photos.py @@ -20,19 +20,17 @@ 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=' + 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: - pass - await ctx.send("Still a work in progress, coming soon.") - - - - - + er.status() + embed = discord.Embed(title="In progress") + embed.set_photo(url=embedlink) + await ctx.send(embed=embed) def setup(bot: commands.Bot) -> None: |