Add "n" as an alias to "new" for creating a system

This commit is contained in:
acw0 2020-07-28 17:57:26 -04:00 committed by Astrid
parent 3c5aec1df8
commit 2f8f819e22

View File

@ -175,7 +175,7 @@ namespace PluralKit.Bot
await ctx.Execute<System>(SystemInfo, m => m.Query(ctx, ctx.System)); await ctx.Execute<System>(SystemInfo, m => m.Query(ctx, ctx.System));
// First, we match own-system-only commands (ie. no target system parameter) // First, we match own-system-only commands (ie. no target system parameter)
else if (ctx.Match("new", "create", "make", "add", "register", "init")) else if (ctx.Match("new", "create", "make", "add", "register", "init", "n"))
await ctx.Execute<System>(SystemNew, m => m.New(ctx)); await ctx.Execute<System>(SystemNew, m => m.New(ctx));
else if (ctx.Match("name", "rename", "changename")) else if (ctx.Match("name", "rename", "changename"))
await ctx.Execute<SystemEdit>(SystemRename, m => m.Name(ctx)); await ctx.Execute<SystemEdit>(SystemRename, m => m.Name(ctx));