From 97be223173d6e1bde7fb3a226e6187e80eb1e6d7 Mon Sep 17 00:00:00 2001 From: Ouroboros <66399070+vmorrisonwood@users.noreply.github.com> Date: Sun, 12 Mar 2023 02:24:54 +0000 Subject: [PATCH] feat(bot): Switch subcommand aliases (#531) --- 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 1a3b77d4..667c2af3 100644 --- a/PluralKit.Bot/CommandMeta/CommandTree.cs +++ b/PluralKit.Bot/CommandMeta/CommandTree.cs @@ -408,9 +408,9 @@ public partial class CommandTree { if (ctx.Match("out")) await ctx.Execute(SwitchOut, m => m.SwitchOut(ctx)); - else if (ctx.Match("move", "shift", "offset")) + else if (ctx.Match("move", "m", "shift", "offset")) await ctx.Execute(SwitchMove, m => m.SwitchMove(ctx)); - else if (ctx.Match("edit", "replace")) + else if (ctx.Match("edit", "e", "replace")) if (ctx.Match("out")) await ctx.Execute(SwitchEditOut, m => m.SwitchEditOut(ctx)); else