aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RohanRadia <[email protected]>2019-05-15 19:26:15 +0100
committerGravatar RohanRadia <[email protected]>2019-05-15 19:26:15 +0100
commit07bf44f8c0bce21b2edd9760cff6eeb4d00139e9 (patch)
tree5c8f1855337ee906b5eede86cef2991a8e309d46
parentAdded docstring to function (diff)
Fixed docstring location
-rw-r--r--bot/seasons/evergreen/issues.py3
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!"}