Go to file
Hri7566 ebbdb15f80 Check linear - FIS-48 FIS-49 2024-06-12 05:19:30 -04:00
config Add discord slash commands 2024-03-20 23:03:26 -04:00
prisma Add kekklefruit (no item behavior yet) 2024-03-05 14:27:46 -05:00
scripts Implement autofishing and Pokédex 2024-02-24 11:12:23 -05:00
src Check linear - FIS-48 FIS-49 2024-06-12 05:19:30 -04:00
test/api/data Make fish work 2024-02-22 20:27:51 -05:00
.env.template Update README.md, add .env.template 2024-03-11 11:25:00 -04:00
.gitignore init 2024-02-14 20:01:36 -05:00
.prettierrc init 2024-02-14 20:01:36 -05:00
README.md Update README.md, add .env.template 2024-03-11 11:25:00 -04:00
bun.lockb Update packages 2024-06-12 04:47:14 -04:00
package.json Update packages 2024-06-12 04:47:14 -04:00
tsconfig.json stuff 2024-02-15 03:47:35 -05:00

README.md

fishing-api

This is a rewrite of Brandon Lockaby's fishing bot for Multiplayer Piano.

This project is a complete overhaul over the original script.

This project was created using bun init in bun v1.0.25. Bun is a fast all-in-one JavaScript runtime.

Deployment

Firstly, a PostgreSQL database must be ready beforehand to connect to with a URI. This shoud be self-explanatory to setup.

Copy the default .env file:

cp .env.template .env

Edit that file to match your environment, then install packages:

bun install
bunx prisma db push

Run both the http server and the clients for various services separately with these commands:

bun . # Main http server
bun src/mpp/index.ts # MPP bot
bun src/discord/index.ts # Discord bot
bun src/cli/index.ts # Command-line client (for debugging)