aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/easter/traditions.py
diff options
context:
space:
mode:
authorGravatar Janine vN <[email protected]>2021-09-04 23:22:12 -0400
committerGravatar Janine vN <[email protected]>2021-09-04 23:22:12 -0400
commit2780043e6ddd5dbee82b62d85289f0518613ce7b (patch)
treeaae3347de61e9d4d53bd5cce301762bad66fe87a /bot/exts/easter/traditions.py
parentMove 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/traditions.py')
-rw-r--r--bot/exts/easter/traditions.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/bot/exts/easter/traditions.py b/bot/exts/easter/traditions.py
deleted file mode 100644
index 93404f3e..00000000
--- a/bot/exts/easter/traditions.py
+++ /dev/null
@@ -1,28 +0,0 @@
-import json
-import logging
-import random
-from pathlib import Path
-
-from discord.ext import commands
-
-from bot.bot import Bot
-
-log = logging.getLogger(__name__)
-
-traditions = json.loads(Path("bot/resources/easter/traditions.json").read_text("utf8"))
-
-
-class Traditions(commands.Cog):
- """A cog which allows users to get a random easter tradition or custom from a random country."""
-
- @commands.command(aliases=("eastercustoms",))
- async def easter_tradition(self, ctx: commands.Context) -> None:
- """Responds with a random tradition or custom."""
- random_country = random.choice(list(traditions))
-
- await ctx.send(f"{random_country}:\n{traditions[random_country]}")
-
-
-def setup(bot: Bot) -> None:
- """Load the Traditions Cog."""
- bot.add_cog(Traditions())