From 7c29bdfda2a8b02e0baf0296825c9d8371d7b5f0 Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Sun, 17 Mar 2024 17:22:02 +0800 Subject: [PATCH] Display commands imported from plugin by default close #705 --- src/cmd/builtin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/builtin.py b/src/cmd/builtin.py index d4b76b04..aa065543 100644 --- a/src/cmd/builtin.py +++ b/src/cmd/builtin.py @@ -183,7 +183,7 @@ def get_help_for_command(cmd_name: str) -> str: commands = sorted([ (cmd_name, get_help_for_command(cmd_name)) for cmd_name, cmd in bc.executor.commands.items() - if args.all or cmd.impl_type != Implementation.FUNCTION]) + if args.all or cmd.impl_type != Implementation.FUNCTION or cmd.module_name.startswith("plugin_")]) if execution_ctx.platform == const.BotBackend.DISCORD: commands.insert( 0, ("Built-in commands", (