From 177f92ef6bf8ff62140bd086f7dc41d110894aa7 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sun, 4 Feb 2024 22:15:13 +0000 Subject: Only run deops rules command group if no sub command could be found --- arthur/exts/fun/devops_rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arthur/exts/fun/devops_rules.py') diff --git a/arthur/exts/fun/devops_rules.py b/arthur/exts/fun/devops_rules.py index ebe5b6f..26e1b6b 100644 --- a/arthur/exts/fun/devops_rules.py +++ b/arthur/exts/fun/devops_rules.py @@ -27,7 +27,7 @@ class Rules(Cog): number, rule = line.split(".", maxsplit=1) self.rules[int(number)] = rule.strip() - @group(name="rules", aliases=("rule",)) + @group(name="rules", aliases=("rule",), invoke_without_command=True) async def rules_group(self, ctx: Context, rules: Greedy[int]) -> None: """List the requested rule(s), or all of them if not defined.""" if rules: -- cgit v1.2.3