fishing-api/scripts/rfish.ts

16 lines
334 B
TypeScript
Raw Normal View History

2024-02-22 20:46:45 +01:00
import { randomFish } from "@server/fish/fish";
import { Logger } from "@util/Logger";
import { argv } from "bun";
const logger = new Logger("Numfish");
const location = argv[2];
if (typeof location !== "string") {
logger.error(`Usage: <location>`);
process.exit();
}
const fish = randomFish(location);
logger.info(fish);