aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/evergreen/speedrun.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/seasons/evergreen/speedrun.py')
-rw-r--r--bot/seasons/evergreen/speedrun.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/bot/seasons/evergreen/speedrun.py b/bot/seasons/evergreen/speedrun.py
deleted file mode 100644
index 76c5e8d3..00000000
--- a/bot/seasons/evergreen/speedrun.py
+++ /dev/null
@@ -1,28 +0,0 @@
-import json
-import logging
-from pathlib import Path
-from random import choice
-
-from discord.ext import commands
-
-log = logging.getLogger(__name__)
-with Path('bot/resources/evergreen/speedrun_links.json').open(encoding="utf-8") as file:
- LINKS = json.load(file)
-
-
-class Speedrun(commands.Cog):
- """Commands about the video game speedrunning community."""
-
- def __init__(self, bot: commands.Bot):
- self.bot = bot
-
- @commands.command(name="speedrun")
- async def get_speedrun(self, ctx: commands.Context) -> None:
- """Sends a link to a video of a random speedrun."""
- await ctx.send(choice(LINKS))
-
-
-def setup(bot: commands.Bot) -> None:
- """Load the Speedrun cog."""
- bot.add_cog(Speedrun(bot))
- log.info("Speedrun cog loaded")