Skip to content

Commit 079d630

Browse files
fix: invoke help command on no args to github
1 parent adfda5f commit 079d630

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

monty/exts/info/github/cog.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from monty.events import MessageContext, MontyEvent
2121
from monty.log import get_logger
2222
from monty.utils import responses, scheduling
23+
from monty.utils.extensions import invoke_help_command
2324
from monty.utils.messages import DeleteButton, suppress_embeds
2425

2526
from . import _handlers as github_handlers
@@ -317,6 +318,10 @@ def sort_key(item: ghretos.GitHubResource) -> tuple:
317318
)
318319
async def github_group(self, ctx: commands.Context, *args) -> None:
319320
"""Group for GitHub related commands."""
321+
if not args:
322+
await invoke_help_command(ctx)
323+
return
324+
320325
# Shortcut user:
321326
# Intentionally match 2 on the args here
322327
# Allow messages such as !github username extra words

0 commit comments

Comments
 (0)