diff options
author | 2019-05-15 19:26:15 +0100 | |
---|---|---|
committer | 2019-05-15 19:26:15 +0100 | |
commit | 07bf44f8c0bce21b2edd9760cff6eeb4d00139e9 (patch) | |
tree | 5c8f1855337ee906b5eede86cef2991a8e309d46 | |
parent | Added docstring to function (diff) |
Fixed docstring location
-rw-r--r-- | bot/seasons/evergreen/issues.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/seasons/evergreen/issues.py b/bot/seasons/evergreen/issues.py index 4de13abd..42a827c8 100644 --- a/bot/seasons/evergreen/issues.py +++ b/bot/seasons/evergreen/issues.py @@ -14,8 +14,9 @@ class Issues(commands.Cog): self.bot = bot @commands.command(aliases=("issues",)) - """Command to retrieve issues from a GitHub repository""" async def issue(self, ctx, number: int, repository: str = "seasonalbot", user: str = "python-discord"): + """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!"} |