aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
Diffstat (limited to 'bot')
-rw-r--r--bot/seasons/evergreen/speedrun.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/bot/seasons/evergreen/speedrun.py b/bot/seasons/evergreen/speedrun.py
index 8bbbfc83..e3ecdca2 100644
--- a/bot/seasons/evergreen/speedrun.py
+++ b/bot/seasons/evergreen/speedrun.py
@@ -1,17 +1,17 @@
import json
import logging
+from pathlib import Path
from random import choice
+
+
from discord.ext import commands
-from pathlib import Path
log = logging.getLogger(__name__)
class Speedrun(commands.Cog):
- """
- A command that will link a random speedrun video from youtube to Discord.
- """
+ """A command that will link a random speedrun video from youtube to Discord."""
def __init__(self, bot):
self.bot = bot
@@ -20,9 +20,9 @@ class Speedrun(commands.Cog):
async def get_speedrun(self, ctx):
"""
Sends a link to Discord of a random speedrun from youtube.
+
Utilizes speedrun_links.json to find links.
"""
-
with open(Path('bot/resources/evergreen/speedrun_links.json')) as file:
data = json.load(file)
links = data['links']
@@ -30,5 +30,6 @@ class Speedrun(commands.Cog):
def setup(bot):
+ """Cog load"""
bot.add_cog(Speedrun(bot))
log.info("Speedrun cog loaded")