mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
feat(bot): add many aliases
This commit is contained in:
parent
7ef1dce0a5
commit
601d266063
6 changed files with 37 additions and 19 deletions
|
|
@ -6,10 +6,10 @@ public static class ContextPrivacyExt
|
|||
{
|
||||
public static PrivacyLevel PopPrivacyLevel(this Context ctx)
|
||||
{
|
||||
if (ctx.Match("public", "show", "shown", "visible"))
|
||||
if (ctx.Match("public", "pub", "show", "shown", "visible", "unhide", "unhidden"))
|
||||
return PrivacyLevel.Public;
|
||||
|
||||
if (ctx.Match("private", "hide", "hidden"))
|
||||
if (ctx.Match("private", "priv", "hide", "hidden"))
|
||||
return PrivacyLevel.Private;
|
||||
|
||||
if (!ctx.HasNext())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue