aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/githubinfo.py
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-03-24 13:31:13 -0400
committerGravatar ToxicKidz <[email protected]>2021-03-24 13:31:13 -0400
commit8b72a57f05c85fbdd6f9735f8cf722f7d63df659 (patch)
treee1ad1360f0380d5df7987a5cf002264f471fe293 /bot/exts/evergreen/githubinfo.py
parent Add the embed kwarg to ctx.send (diff)
Update docstrings because user and repo are now mandatory arguments
Diffstat (limited to 'bot/exts/evergreen/githubinfo.py')
-rw-r--r--bot/exts/evergreen/githubinfo.py12
1 files changed, 2 insertions, 10 deletions
diff --git a/bot/exts/evergreen/githubinfo.py b/bot/exts/evergreen/githubinfo.py
index 1be2e385..34e30d0b 100644
--- a/bot/exts/evergreen/githubinfo.py
+++ b/bot/exts/evergreen/githubinfo.py
@@ -34,11 +34,7 @@ class GithubInfo(commands.Cog):
@github_group.command(name='user', aliases=('userinfo',))
async def github_user_info(self, ctx: commands.Context, username: str) -> None:
- """
- Fetches a user's GitHub information.
-
- Username is optional and sends the help command if not specified.
- """
+ """Fetches a user's GitHub information."""
async with ctx.typing():
user_data = await self.fetch_data(f"{GITHUB_API_URL}/users/{username}")
@@ -106,11 +102,7 @@ class GithubInfo(commands.Cog):
@github_group.command(name='repository', aliases=('repo',))
async def github_repo_info(self, ctx: commands.Context, repo: str) -> None:
- """
- Fetches a repositories' GitHub information. The repository should look like `user/reponame`.
-
- Repository is optional and sends the help command if not specified.
- """
+ """Fetches a repositories' GitHub information. The repository should look like `user/reponame`."""
async with ctx.typing():
repo_data = await self.fetch_data(f"{GITHUB_API_URL}/repos/{repo}")