fix(bot): Show correct command for proxy case (#500)
This commit is contained in:
parent
07845edee6
commit
1960fa9dfd
@ -89,8 +89,8 @@ public class Config
|
|||||||
));
|
));
|
||||||
|
|
||||||
items.Add(new(
|
items.Add(new(
|
||||||
"Case sensitive proxy tags",
|
"Proxy case",
|
||||||
"If proxy tags should be case sensitive",
|
"Whether proxy tags are case sensitive",
|
||||||
EnabledDisabled(ctx.Config.CaseSensitiveProxyTags),
|
EnabledDisabled(ctx.Config.CaseSensitiveProxyTags),
|
||||||
"enabled"
|
"enabled"
|
||||||
));
|
));
|
||||||
@ -395,8 +395,8 @@ public class Config
|
|||||||
{
|
{
|
||||||
if (!ctx.HasNext())
|
if (!ctx.HasNext())
|
||||||
{
|
{
|
||||||
if (ctx.Config.CaseSensitiveProxyTags) { await ctx.Reply("Proxy tags are currently case sensitive"); }
|
if (ctx.Config.CaseSensitiveProxyTags) { await ctx.Reply("Proxy tags are currently case **sensitive**."); }
|
||||||
else { await ctx.Reply("Proxy tags are currently case insensitive"); }
|
else { await ctx.Reply("Proxy tags are currently case **insensitive**."); }
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -404,13 +404,13 @@ public class Config
|
|||||||
{
|
{
|
||||||
await ctx.Repository.UpdateSystemConfig(ctx.System.Id, new() { CaseSensitiveProxyTags = true });
|
await ctx.Repository.UpdateSystemConfig(ctx.System.Id, new() { CaseSensitiveProxyTags = true });
|
||||||
|
|
||||||
await ctx.Reply("Proxy tags are now case sensitive");
|
await ctx.Reply("Proxy tags are now case sensitive.");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
await ctx.Repository.UpdateSystemConfig(ctx.System.Id, new() { CaseSensitiveProxyTags = false });
|
await ctx.Repository.UpdateSystemConfig(ctx.System.Id, new() { CaseSensitiveProxyTags = false });
|
||||||
|
|
||||||
await ctx.Reply("Proxy tags are now case insensitive");
|
await ctx.Reply("Proxy tags are now case insensitive.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user