mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-09 07:17:56 +00:00
fix(bot): Show correct command for proxy case (#500)
This commit is contained in:
parent
07845edee6
commit
1960fa9dfd
1 changed files with 6 additions and 6 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue