From 4c8e5d9aeccbbb891b4ecb2522e0cbf912b6bf98 Mon Sep 17 00:00:00 2001 From: Iris System Date: Sun, 8 May 2022 18:30:46 +1200 Subject: [PATCH] feat: add aliases: `pk;ap l` (latch), `pk;ap f` (front) --- PluralKit.Bot/Commands/Autoproxy.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PluralKit.Bot/Commands/Autoproxy.cs b/PluralKit.Bot/Commands/Autoproxy.cs index a1daaf72..237708a3 100644 --- a/PluralKit.Bot/Commands/Autoproxy.cs +++ b/PluralKit.Bot/Commands/Autoproxy.cs @@ -18,9 +18,9 @@ public class Autoproxy if (ctx.Match("off", "stop", "cancel", "no", "disable", "remove")) await AutoproxyOff(ctx, settings); - else if (ctx.Match("latch", "last", "proxy", "stick", "sticky")) + else if (ctx.Match("latch", "last", "proxy", "stick", "sticky", "l")) await AutoproxyLatch(ctx, settings); - else if (ctx.Match("front", "fronter", "switch")) + else if (ctx.Match("front", "fronter", "switch", "f")) await AutoproxyFront(ctx, settings); else if (ctx.Match("member")) throw new PKSyntaxError("Member-mode autoproxy must target a specific member. Use the `pk;autoproxy ` command, where `member` is the name or ID of a member in your system.");