From f6892a691a824cb5b9eb1bb3150677af79561fd6 Mon Sep 17 00:00:00 2001 From: Hri7566 Date: Wed, 20 Mar 2024 04:37:56 -0400 Subject: [PATCH] Add fid command --- src/api/commands/groups/index.ts | 3 ++- src/api/commands/groups/util/fid.ts | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/api/commands/groups/util/fid.ts diff --git a/src/api/commands/groups/index.ts b/src/api/commands/groups/index.ts index 3f4065a..0a67b7e 100644 --- a/src/api/commands/groups/index.ts +++ b/src/api/commands/groups/index.ts @@ -21,6 +21,7 @@ import { myid } from "./general/myid"; import { yeet } from "./inventory/yeet"; import { tree } from "./fishing/tree"; import { pick } from "./fishing/pick"; +import { fid } from "./util/fid"; // import { give } from "./inventory/give"; interface ICommandGroup { @@ -58,7 +59,7 @@ commandGroups.push(inventoryGroup); const utilGroup: ICommandGroup = { id: "util", displayName: "Utility", - commands: [data, setcolor, memory, autofish, pokedex] + commands: [data, setcolor, memory, autofish, pokedex, fid] }; commandGroups.push(utilGroup); diff --git a/src/api/commands/groups/util/fid.ts b/src/api/commands/groups/util/fid.ts new file mode 100644 index 0000000..d431a7b --- /dev/null +++ b/src/api/commands/groups/util/fid.ts @@ -0,0 +1,13 @@ +import Command from "@server/commands/Command"; + +export const fid = new Command( + "fid", + ["fid"], + "Get internal ID", + "fid", + "command.util.fid", + async props => { + return props.id; + }, + false +);