feat(bot): added "pk;s fh clear" as alias to "pk;sw delete all" (#567)

This commit is contained in:
rladenson 2023-07-17 16:51:51 -06:00 committed by Iris System
parent b75e3fe7d3
commit 599f0fbc54
2 changed files with 7 additions and 1 deletions

View file

@ -28,6 +28,12 @@ public class SystemFront
public async Task SystemFrontHistory(Context ctx, PKSystem system)
{
if (ctx.MatchFlag("clear", "c") || ctx.PeekArgument() == "clear")
{
await new Switch().SwitchDelete(ctx);
return;
}
if (system == null) throw Errors.NoSystemError;
ctx.CheckSystemPrivacy(system.Id, system.FrontHistoryPrivacy);