diff options
Diffstat (limited to 'bot/exts/easter/april_fools_vids.py')
| -rw-r--r-- | bot/exts/easter/april_fools_vids.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/bot/exts/easter/april_fools_vids.py b/bot/exts/easter/april_fools_vids.py deleted file mode 100644 index 5ef40704..00000000 --- a/bot/exts/easter/april_fools_vids.py +++ /dev/null @@ -1,30 +0,0 @@ -import logging -import random -from json import loads -from pathlib import Path - -from discord.ext import commands - -from bot.bot import Bot - -log = logging.getLogger(__name__) - -ALL_VIDS = loads(Path("bot/resources/easter/april_fools_vids.json").read_text("utf-8")) - - -class AprilFoolVideos(commands.Cog): - """A cog for April Fools' that gets a random April Fools' video from Youtube.""" - - @commands.command(name="fool") - async def april_fools(self, ctx: commands.Context) -> None: - """Get a random April Fools' video from Youtube.""" - video = random.choice(ALL_VIDS) - - channel, url = video["channel"], video["url"] - - await ctx.send(f"Check out this April Fools' video by {channel}.\n\n{url}") - - -def setup(bot: Bot) -> None: - """Load the April Fools' Cog.""" - bot.add_cog(AprilFoolVideos()) |