aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/exts/fun/devops_rules.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-02-04 22:15:13 +0000
committerGravatar Chris Lovering <[email protected]>2024-02-04 22:15:13 +0000
commit177f92ef6bf8ff62140bd086f7dc41d110894aa7 (patch)
tree9cfdee64a3b803bc24bc6eff72ba81b25374a237 /arthur/exts/fun/devops_rules.py
parentEnsure devops rules key cache uses int based keys (diff)
Only run deops rules command group if no sub command could be found
Diffstat (limited to 'arthur/exts/fun/devops_rules.py')
-rw-r--r--arthur/exts/fun/devops_rules.py2
1 files changed, 1 insertions, 1 deletions
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: