diff options
| author | 2021-09-04 23:22:12 -0400 | |
|---|---|---|
| committer | 2021-09-04 23:22:12 -0400 | |
| commit | 2780043e6ddd5dbee82b62d85289f0518613ce7b (patch) | |
| tree | aae3347de61e9d4d53bd5cce301762bad66fe87a /bot/exts/easter/save_the_planet.py | |
| parent | Move AoC and Hacktoberfest into events folder (diff) | |
Move Easter to Holidays Folder
This moves the easter seasonal features into a more cohesive
holidays/easter folder. Additionally, this splits out earth day into
its own holiday folder.
Diffstat (limited to 'bot/exts/easter/save_the_planet.py')
| -rw-r--r-- | bot/exts/easter/save_the_planet.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/bot/exts/easter/save_the_planet.py b/bot/exts/easter/save_the_planet.py deleted file mode 100644 index 1bd515f2..00000000 --- a/bot/exts/easter/save_the_planet.py +++ /dev/null @@ -1,25 +0,0 @@ -import json -from pathlib import Path - -from discord import Embed -from discord.ext import commands - -from bot.bot import Bot -from bot.utils.randomization import RandomCycle - -EMBED_DATA = RandomCycle(json.loads(Path("bot/resources/easter/save_the_planet.json").read_text("utf8"))) - - -class SaveThePlanet(commands.Cog): - """A cog that teaches users how they can help our planet.""" - - @commands.command(aliases=("savetheearth", "saveplanet", "saveearth")) - async def savetheplanet(self, ctx: commands.Context) -> None: - """Responds with a random tip on how to be eco-friendly and help our planet.""" - return_embed = Embed.from_dict(next(EMBED_DATA)) - await ctx.send(embed=return_embed) - - -def setup(bot: Bot) -> None: - """Load the Save the Planet Cog.""" - bot.add_cog(SaveThePlanet()) |