mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 10:10:12 +00:00
Add aliases for command fronthistory
Add aliases `fh`, `history` and `switches`, executed as `pk;s history`
This commit is contained in:
parent
6ae24cbe92
commit
ebc8ab1738
2 changed files with 2 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ async def system_root(ctx: CommandContext):
|
||||||
await system_delete(ctx)
|
await system_delete(ctx)
|
||||||
elif ctx.match("front") or ctx.match("fronter") or ctx.match("fronters"):
|
elif ctx.match("front") or ctx.match("fronter") or ctx.match("fronters"):
|
||||||
await system_fronter(ctx, await ctx.ensure_system())
|
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())
|
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"):
|
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())
|
await system_frontpercent(ctx, await ctx.ensure_system())
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "fronthistory",
|
"name": "fronthistory",
|
||||||
|
"aliases": ["system fh", "system history", "system switches"],
|
||||||
"usage": "system [id] fronthistory",
|
"usage": "system [id] fronthistory",
|
||||||
"category": "System",
|
"category": "System",
|
||||||
"description": "Shows the last 10 switches of a system."
|
"description": "Shows the last 10 switches of a system."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue