diff options
author | 2019-07-10 16:49:42 -0400 | |
---|---|---|
committer | 2019-07-10 16:49:42 -0400 | |
commit | 3e0a39bc4aec73a9bade408f514f54aef8f4af44 (patch) | |
tree | 0592dcbe2c32be12b8d110f7afc0e6c4e4adad14 | |
parent | Add missing whitespace to egghead questions JSON (diff) |
Align setup docstring to database, fix docstring issues
-rw-r--r-- | bot/seasons/evergreen/issues.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bot/seasons/evergreen/issues.py b/bot/seasons/evergreen/issues.py index fb85323f..840d9ead 100644 --- a/bot/seasons/evergreen/issues.py +++ b/bot/seasons/evergreen/issues.py @@ -7,15 +7,14 @@ log = logging.getLogger(__name__) class Issues(commands.Cog): - """Cog that allows users to retrieve issues from GitHub""" + """Cog that allows users to retrieve issues from GitHub.""" def __init__(self, bot): self.bot = bot @commands.command(aliases=("issues",)) async def issue(self, ctx, number: int, repository: str = "seasonalbot", user: str = "python-discord"): - """Command to retrieve issues from a GitHub repository""" - + """Command to retrieve issues from a GitHub repository.""" url = f"https://api.github.com/repos/{user}/{repository}/issues/{str(number)}" status = {"404": f"Issue #{str(number)} doesn't exist in the repository {user}/{repository}.", "403": f"Rate limit exceeded. Please wait a while before trying again!"} @@ -37,7 +36,6 @@ class Issues(commands.Cog): def setup(bot): - """Cog Retrieves Issues From Github""" - + """Github Issues Cog Load.""" bot.add_cog(Issues(bot)) log.info("Issues cog loaded") |