Skip to content

Commit

Permalink
Add in percy commands (#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
vck3000 authored Jan 3, 2025
1 parent 0635788 commit 4bb54cc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sockets/commands/percival/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Command, Commands } from '../types';
import { p } from './p';
import { mdc } from '../mod/mdc';
import { mforcemove } from '../mod/mforcemove';
import { mclose } from '../mod/mclose';

// Percival commands are intended to be a strict subset of mod commands.

Expand Down Expand Up @@ -32,8 +34,12 @@ export function convertModCommandToPercivalCommand(
}

const pdc = convertModCommandToPercivalCommand(mdc);
const pforcemove = convertModCommandToPercivalCommand(mforcemove);
const pclose = convertModCommandToPercivalCommand(mclose);

export const percivalCommands: Commands = {
[p.command]: p,
[pdc.command]: pdc,
[pforcemove.command]: pforcemove,
[pclose.command]: pclose,
};

0 comments on commit 4bb54cc

Please sign in to comment.