From f03b4683f7fd6b5dfd713dc23ae5e68194dcec8e Mon Sep 17 00:00:00 2001 From: Ske Date: Thu, 27 Feb 2020 18:06:13 +0100 Subject: [PATCH] Restructure system proxy command --- PluralKit.Bot/Commands/SystemEdit.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/PluralKit.Bot/Commands/SystemEdit.cs b/PluralKit.Bot/Commands/SystemEdit.cs index 1c5f0899..01f4b54f 100644 --- a/PluralKit.Bot/Commands/SystemEdit.cs +++ b/PluralKit.Bot/Commands/SystemEdit.cs @@ -168,7 +168,14 @@ namespace PluralKit.Bot if (ctx.Match("on", "enabled", "true", "yes")) newValue = true; else if (ctx.Match("off", "disabled", "false", "no")) newValue = false; else if (ctx.HasNext()) throw new PKSyntaxError("You must pass either \"on\" or \"off\"."); - else newValue = !gs.ProxyEnabled; + else + { + if (gs.ProxyEnabled) + await ctx.Reply("Proxying in this server is currently **enabled** for your system. To disable it, type `pk;system proxy off`."); + else + await ctx.Reply("Proxying in this server is currently **disabled** for your system. To enable it, type `pk;system proxy on`."); + return; + } gs.ProxyEnabled = newValue; await _data.SetSystemGuildSettings(ctx.System, ctx.Guild.Id, gs);