aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Kronifer <[email protected]>2021-03-02 14:27:58 -0600
committerGravatar GitHub <[email protected]>2021-03-02 14:27:58 -0600
commit1e240e7fbac71b0546ef090732c7417bab4e1563 (patch)
treeb4bfdda54d01f67b04f00e8f70e0f25e171edf74
parentMerge pull request #607 from Shivansh-007/fix/startup-channels (diff)
initial commit of earth_photos
-rw-r--r--bot/exts/easter/earth_photos.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/bot/exts/easter/earth_photos.py b/bot/exts/easter/earth_photos.py
new file mode 100644
index 00000000..ceffeb48
--- /dev/null
+++ b/bot/exts/easter/earth_photos.py
@@ -0,0 +1,27 @@
+import asyncio
+import logging
+import random
+from unsplash.api import Api
+from unsplash.auth import Auth
+
+import discord
+from discord.ext import commands
+
+log = logging.getLogger(__name__)
+
+class EarthPhotos(commands.Cog):
+ """This cog contains the command for earth photos."""
+
+ def init(self, bot: commands.Bot):
+ self.bot = bot
+ self.current_channel = None
+
+ @commands.command(aliases=["earth"])
+ async def earth_photos(self, ctx: commands.Context):
+ """
+ Returns a random photo of earth.
+ """
+
+
+
+