From 78ab3f8bcd017a10794971c5a8362364732fcdaa Mon Sep 17 00:00:00 2001 From: spiral Date: Mon, 13 Sep 2021 04:39:06 -0400 Subject: [PATCH] feat: don't show an error when running raw `pk;commands` --- PluralKit.Bot/Commands/CommandTree.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PluralKit.Bot/Commands/CommandTree.cs b/PluralKit.Bot/Commands/CommandTree.cs index f9d67065..9d8f7417 100644 --- a/PluralKit.Bot/Commands/CommandTree.cs +++ b/PluralKit.Bot/Commands/CommandTree.cs @@ -496,7 +496,9 @@ namespace PluralKit.Bot { if (!ctx.HasNext()) { - await ctx.Reply($"{Emojis.Error} You need to pass a target command.\nAvailable command help targets: `system`, `member`, `group`, `switch`, `log`, `blacklist`.\nFor the full list of commands, see the website: "); + await ctx.Reply($"Available command help targets: `system`, `member`, `group`, `switch`, `autoproxy`, `log`, `blacklist`." + + "\n- **pk;commands ** - *View commands related to a help target.*" + + "\n\nFor the full list of commands, see the website: "); return; } @@ -543,7 +545,6 @@ namespace PluralKit.Bot private Task HandleAutoproxyCommand(Context ctx) { - // todo: merge this with the changes from #251 if (ctx.Match("commands")) return PrintCommandList(ctx, "autoproxy", AutoproxyCommands);