Add fid command
This commit is contained in:
parent
c645229cca
commit
f6892a691a
|
@ -21,6 +21,7 @@ import { myid } from "./general/myid";
|
||||||
import { yeet } from "./inventory/yeet";
|
import { yeet } from "./inventory/yeet";
|
||||||
import { tree } from "./fishing/tree";
|
import { tree } from "./fishing/tree";
|
||||||
import { pick } from "./fishing/pick";
|
import { pick } from "./fishing/pick";
|
||||||
|
import { fid } from "./util/fid";
|
||||||
// import { give } from "./inventory/give";
|
// import { give } from "./inventory/give";
|
||||||
|
|
||||||
interface ICommandGroup {
|
interface ICommandGroup {
|
||||||
|
@ -58,7 +59,7 @@ commandGroups.push(inventoryGroup);
|
||||||
const utilGroup: ICommandGroup = {
|
const utilGroup: ICommandGroup = {
|
||||||
id: "util",
|
id: "util",
|
||||||
displayName: "Utility",
|
displayName: "Utility",
|
||||||
commands: [data, setcolor, memory, autofish, pokedex]
|
commands: [data, setcolor, memory, autofish, pokedex, fid]
|
||||||
};
|
};
|
||||||
|
|
||||||
commandGroups.push(utilGroup);
|
commandGroups.push(utilGroup);
|
||||||
|
|
|
@ -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
|
||||||
|
);
|
Loading…
Reference in New Issue