diff options
| author | 2019-10-26 17:16:01 +0200 | |
|---|---|---|
| committer | 2019-10-26 17:16:01 +0200 | |
| commit | a9b0027755a89af79d4cf81e6b49a6b5a029b405 (patch) | |
| tree | 4b16923c7918e062179a1bb013d9acf813be4020 /bot/cogs/alias.py | |
| parent | Add reddit environment variable, change User-Agent and fix lint problem (diff) | |
| parent | Merge pull request #527 from kraktus/compact_free (diff) | |
Resolved merge conflicts.
Add retry loop to token request.
Revoke access token after usage.
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/alias.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/cogs/alias.py b/bot/cogs/alias.py index 6648805e9..5190c559b 100644 --- a/bot/cogs/alias.py +++ b/bot/cogs/alias.py @@ -79,10 +79,10 @@ class Alias (Cog): """Alias for invoking <prefix>site faq.""" await self.invoke(ctx, "site faq") - @command(name="rules", hidden=True) - async def site_rules_alias(self, ctx: Context) -> None: + @command(name="rules", aliases=("rule",), hidden=True) + async def site_rules_alias(self, ctx: Context, *rules: int) -> None: """Alias for invoking <prefix>site rules.""" - await self.invoke(ctx, "site rules") + await self.invoke(ctx, "site rules", *rules) @command(name="reload", hidden=True) async def extensions_reload_alias(self, ctx: Context, *extensions: Extension) -> None: |