diff options
| author | 2021-03-12 19:17:39 -0500 | |
|---|---|---|
| committer | 2021-03-12 19:17:39 -0500 | |
| commit | cc72d484115a8acebf0fafe8bb332817168d3acd (patch) | |
| tree | fd5ac32633bf9eac9ec0f1f8428014c48d9e5101 /bot/exts/valentines/be_my_valentine.py | |
| parent | change ctx.send_help to ctx.invoke(help_command) (diff) | |
make utility invoke_help_command function
Diffstat (limited to 'bot/exts/valentines/be_my_valentine.py')
| -rw-r--r-- | bot/exts/valentines/be_my_valentine.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/valentines/be_my_valentine.py b/bot/exts/valentines/be_my_valentine.py index 59bd42d3..d5cc8644 100644 --- a/bot/exts/valentines/be_my_valentine.py +++ b/bot/exts/valentines/be_my_valentine.py @@ -10,6 +10,7 @@ from discord.ext.commands.cooldowns import BucketType from bot.constants import Channels, Colours, Lovefest, Month from bot.utils.decorators import in_month +from bot.utils.extensions import invoke_help_command log = logging.getLogger(__name__) @@ -43,8 +44,7 @@ class BeMyValentine(commands.Cog): 2) use the command \".lovefest unsub\" to get rid of the lovefest role. """ if not ctx.invoked_subcommand: - help_command = self.bot.get_command("help") - await ctx.invoke(help_command, ctx.command.name) + await invoke_help_command(ctx, ctx.command.name) @lovefest_role.command(name="sub") async def add_role(self, ctx: commands.Context) -> None: |