diff options
author | 2019-10-01 23:49:10 +0200 | |
---|---|---|
committer | 2019-10-01 23:49:10 +0200 | |
commit | a994c2c2b67521b8a739536ae0c9d47de75ce7b8 (patch) | |
tree | 9cf1d9d742a83523dff1f8139a8e5a1ef3aa2c4c | |
parent | Create !tools alias and split !site resources. (diff) |
Fix missing type annotations and docstring errors.
-rw-r--r-- | bot/cogs/alias.py | 7 | ||||
-rw-r--r-- | bot/cogs/site.py | 3 |
2 files changed, 3 insertions, 7 deletions
diff --git a/bot/cogs/alias.py b/bot/cogs/alias.py index 0df5498a1..0f49a400c 100644 --- a/bot/cogs/alias.py +++ b/bot/cogs/alias.py @@ -54,11 +54,8 @@ class Alias (Cog): await self.invoke(ctx, "site resources") @command(name="tools", hidden=True) - async def site_tools_alias(self, ctx): - """ - Alias for invoking <prefix>site tools. - """ - + async def site_tools_alias(self, ctx: Context) -> None: + """Alias for invoking <prefix>site tools.""" await self.invoke(ctx, "site tools") @command(name="watch", hidden=True) diff --git a/bot/cogs/site.py b/bot/cogs/site.py index 8a8fed575..c3bdf85e4 100644 --- a/bot/cogs/site.py +++ b/bot/cogs/site.py @@ -57,9 +57,8 @@ class Site(Cog): await ctx.send(embed=embed) @site_group.command(name="tools") - async def site_tools(self, ctx: Context): + async def site_tools(self, ctx: Context) -> None: """Info about the site's Tools page.""" - tools_url = f"{PAGES_URL}/tools" embed = Embed(title="Tools") |