Go to file
Hri7566 1a8a272c87 Merge branch 'dev' 2024-09-23 18:17:03 -04:00
config dev config 2024-09-15 08:08:51 -04:00
prisma
scripts
site Update bun, add site 2024-07-07 09:11:44 -04:00
src Merge branch 'dev' 2024-09-23 18:17:03 -04:00
test/api/data
.env.template Update README.md, add .env.template 2024-03-11 11:25:00 -04:00
.gitignore
.prettierrc
README.md Update README.md, add .env.template 2024-03-11 11:25:00 -04:00
bun.lockb stuff 2024-09-15 18:19:17 -04:00
package.json stuff 2024-09-15 18:19:17 -04:00
tsconfig.json

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)