diff options
| author | 2020-01-16 12:06:23 +0700 | |
|---|---|---|
| committer | 2020-01-16 12:06:23 +0700 | |
| commit | 95dcb52fd73700e55b080dd93fce25d434ec861e (patch) | |
| tree | ba3b238d5508e6acf747840550f315bb02f79731 /bot/cogs/alias.py | |
| parent | ModLog: support self_stream voice state (diff) | |
| parent | Discord.py server added to whitelist (diff) | |
Merge branch 'master' into feature/645-voice-event-log
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/alias.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bot/cogs/alias.py b/bot/cogs/alias.py index 5190c559b..d05a6a715 100644 --- a/bot/cogs/alias.py +++ b/bot/cogs/alias.py @@ -3,8 +3,12 @@ import logging from typing import Union from discord import Colour, Embed, Member, User -from discord.ext.commands import Bot, Cog, Command, Context, clean_content, command, group +from discord.ext.commands import ( + Cog, Command, Context, Greedy, + clean_content, command, group, +) +from bot.bot import Bot from bot.cogs.extensions import Extension from bot.cogs.watchchannels.watchchannel import proxy_user from bot.converters import TagNameConverter @@ -80,7 +84,7 @@ class Alias (Cog): await self.invoke(ctx, "site faq") @command(name="rules", aliases=("rule",), hidden=True) - async def site_rules_alias(self, ctx: Context, *rules: int) -> None: + async def site_rules_alias(self, ctx: Context, rules: Greedy[int], *_: str) -> None: """Alias for invoking <prefix>site rules.""" await self.invoke(ctx, "site rules", *rules) @@ -147,6 +151,5 @@ class Alias (Cog): def setup(bot: Bot) -> None: - """Alias cog load.""" + """Load the Alias cog.""" bot.add_cog(Alias(bot)) - log.info("Cog loaded: Alias") |