Add command aliases

This commit is contained in:
xBelladonna 2019-04-11 16:09:29 +09:30 committed by Astrid
parent 0cc55e5717
commit 52e1c06d1b
3 changed files with 7 additions and 7 deletions

View file

@ -28,7 +28,7 @@ async def system_root(ctx: CommandContext):
await system_tag(ctx)
elif ctx.match("new") or ctx.match("register") or ctx.match("create") or ctx.match("init"):
await system_new(ctx)
elif ctx.match("delete") or ctx.match("delete") or ctx.match("erase"):
elif ctx.match("delete") or ctx.match("remove") or ctx.match("destroy") or ctx.match("erase"):
await system_delete(ctx)
elif ctx.match("front") or ctx.match("fronter") or ctx.match("fronters"):
await system_fronter(ctx, await ctx.ensure_system())
@ -363,7 +363,7 @@ async def system_frontpercent(ctx: CommandContext, system: System):
async def system_list(ctx: CommandContext, system: System):
# TODO: refactor this
all_members = sorted(await system.get_members(ctx.conn), key=lambda m: m.name.lower())
if ctx.match("full"):
page_size = 8