From ebc8ab1738f8c5db546ed4326b47ebd80fb945a7 Mon Sep 17 00:00:00 2001 From: xBelladonna Date: Sat, 8 Jun 2019 10:23:23 +0930 Subject: [PATCH] Add aliases for command `fronthistory` Add aliases `fh`, `history` and `switches`, executed as `pk;s history` --- src/pluralkit/bot/commands/system_commands.py | 2 +- src/pluralkit/bot/help.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pluralkit/bot/commands/system_commands.py b/src/pluralkit/bot/commands/system_commands.py index aee3819d..fa9c1576 100644 --- a/src/pluralkit/bot/commands/system_commands.py +++ b/src/pluralkit/bot/commands/system_commands.py @@ -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()) diff --git a/src/pluralkit/bot/help.json b/src/pluralkit/bot/help.json index e489459d..2978cf04 100644 --- a/src/pluralkit/bot/help.json +++ b/src/pluralkit/bot/help.json @@ -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."