diff options
| author | 2021-03-02 22:04:47 -0600 | |
|---|---|---|
| committer | 2021-03-02 22:04:47 -0600 | |
| commit | 286d40bb887246216da23857b4eeb8364fcbf9c7 (patch) | |
| tree | 765d6fed56ecb90a49d488e90f9fdfc8c35b9998 /bot | |
| parent | Update earth_photos.py (diff) | |
linting changes
Diffstat (limited to 'bot')
| -rw-r--r-- | bot/exts/easter/earth_photos.py | 8 | 
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')  |