feat(bot): add proxy error config (#544)

This commit is contained in:
Jake Fulmine
2023-03-25 23:42:47 +01:00
committed by GitHub
parent 020a6f99fe
commit 8187aa05b7
10 changed files with 93 additions and 7 deletions

View File

@@ -524,6 +524,8 @@ public partial class CommandTree
return ctx.Execute<Config>(null, m => m.ShowPrivateInfo(ctx));
if (ctx.MatchMultiple(new[] { "proxy" }, new[] { "case" }))
return ctx.Execute<Config>(null, m => m.CaseSensitiveProxyTags(ctx));
if (ctx.MatchMultiple(new[] { "proxy" }, new[] { "error" }) || ctx.Match("pe"))
return ctx.Execute<Config>(null, m => m.ProxyErrorMessageEnabled(ctx));
// todo: maybe add the list of configuration keys here?
return ctx.Reply($"{Emojis.Error} Could not find a setting with that name. Please see `pk;commands config` for the list of possible config settings.");