From f25b967a36df0fe67d0c551055b9b7faeac41b09 Mon Sep 17 00:00:00 2001 From: Iris System Date: Sun, 8 May 2022 13:37:17 +1200 Subject: [PATCH] feat: add aliases: `pk;h` (help) and `pk;m kp` (keepproxy) --- PluralKit.Bot/CommandMeta/CommandTree.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PluralKit.Bot/CommandMeta/CommandTree.cs b/PluralKit.Bot/CommandMeta/CommandTree.cs index f91b0762..29be7bf0 100644 --- a/PluralKit.Bot/CommandMeta/CommandTree.cs +++ b/PluralKit.Bot/CommandMeta/CommandTree.cs @@ -35,7 +35,7 @@ public partial class CommandTree return ctx.Execute(Import, m => m.Import(ctx)); if (ctx.Match("export")) return ctx.Execute(Export, m => m.Export(ctx)); - if (ctx.Match("help")) + if (ctx.Match("help", "h")) if (ctx.Match("commands")) return ctx.Reply("For the list of commands, see the website: "); else if (ctx.Match("proxy")) @@ -308,7 +308,7 @@ public partial class CommandTree await ctx.Execute(MemberServerName, m => m.ServerName(ctx, target)); else if (ctx.Match("autoproxy", "ap")) await ctx.Execute(MemberAutoproxy, m => m.MemberAutoproxy(ctx, target)); - else if (ctx.Match("keepproxy", "keeptags", "showtags")) + else if (ctx.Match("keepproxy", "keeptags", "showtags", "kp")) await ctx.Execute(MemberKeepProxy, m => m.KeepProxy(ctx, target)); else if (ctx.Match("privacy")) await ctx.Execute(MemberPrivacy, m => m.Privacy(ctx, target, null));