Add aliases for command fronthistory

Add aliases `fh`, `history` and `switches`, executed as `pk;s history`
This commit is contained in:
xBelladonna 2019-06-08 10:23:23 +09:30 committed by Astrid
parent 6ae24cbe92
commit ebc8ab1738
2 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,7 @@ async def system_root(ctx: CommandContext):
await system_delete(ctx)
elif ctx.match("front") or ctx.match("fronter") or ctx.match("fronters"):
await system_fronter(ctx, await ctx.ensure_system())
elif ctx.match("fronthistory"):
elif ctx.match("fronthistory") or ctx.match("fh") or ctx.match("history") or ctx.match("switches"):
await system_fronthistory(ctx, await ctx.ensure_system())
elif ctx.match("frontpercent") or ctx.match("frontbreakdown") or ctx.match("frontpercentage") or ctx.match("front%") or ctx.match("fp"):
await system_frontpercent(ctx, await ctx.ensure_system())

View File

@ -72,6 +72,7 @@
},
{
"name": "fronthistory",
"aliases": ["system fh", "system history", "system switches"],
"usage": "system [id] fronthistory",
"category": "System",
"description": "Shows the last 10 switches of a system."