From 9fdb2f36be9cbaef6b098fc0f64b8c9e0a61bf2d Mon Sep 17 00:00:00 2001 From: poggingfish <38115495+poggingfish@users.noreply.github.com> Date: Sat, 5 Nov 2022 15:47:09 -0500 Subject: [PATCH] Correct grammar for switches (#491) --- PluralKit.Bot/Commands/Switch.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/PluralKit.Bot/Commands/Switch.cs b/PluralKit.Bot/Commands/Switch.cs index 751cf0a2..347bfe29 100644 --- a/PluralKit.Bot/Commands/Switch.cs +++ b/PluralKit.Bot/Commands/Switch.cs @@ -48,9 +48,12 @@ public class Switch if (members.Count == 0) await ctx.Reply($"{Emojis.Success} Switch-out registered."); - else + else if (members.Count == 1) await ctx.Reply( $"{Emojis.Success} Switch registered. Current fronter is now {string.Join(", ", members.Select(m => m.NameFor(ctx)))}."); + else + await ctx.Reply( + $"{Emojis.Success} Switch registered. Current fronters are now {string.Join(", ", members.Select(m => m.NameFor(ctx)))}."); } public async Task SwitchMove(Context ctx) @@ -150,8 +153,10 @@ public class Switch // Tell the user the edit suceeded if (members.Count == 0) await ctx.Reply($"{Emojis.Success} Switch edited. The latest switch is now a switch-out."); - else + if (members.Count == 1) await ctx.Reply($"{Emojis.Success} Switch edited. Current fronter is now {newSwitchMemberStr}."); + else + await ctx.Reply($"{Emojis.Success} Switch edited. Current fronters are now {newSwitchMemberStr}."); } public async Task SwitchDelete(Context ctx)