aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Kronifer <[email protected]>2021-03-02 22:15:57 -0600
committerGravatar Kronifer <[email protected]>2021-03-02 22:15:57 -0600
commitda54e5181cbf2ab3406be4a8ab9628e346d3c328 (patch)
tree1e616b483733cb03a209dcca10a3102208a7a294
parentmore linting fixes (diff)
lint fixes
-rw-r--r--bot/exts/easter/earth_photos.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bot/exts/easter/earth_photos.py b/bot/exts/easter/earth_photos.py
index c9cfc9c8..909fcbd8 100644
--- a/bot/exts/easter/earth_photos.py
+++ b/bot/exts/easter/earth_photos.py
@@ -1,7 +1,6 @@
import logging
import discord
-
import requests
from discord.ext import commands
@@ -15,13 +14,13 @@ UnClient_id = Tokens.unsplash_key
class EarthPhotos(commands.Cog):
"""This cog contains the command for earth photos."""
- def init(self, bot: commands.Bot):
+ def init(self, bot: commands.Bot) -> None:
"""Init function."""
self.bot = bot
self.current_channel = None
@commands.command(aliases=["earth"])
- async def earth_photos(self, ctx: commands.Context):
+ async def earth_photos(self, ctx: commands.Context) -> None:
"""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()