Go to file
Hri7566 a92873a613 Change MPP bot config file location, fix channels in said config, and add a check to make sure we only chat in the desired channel 2024-06-13 21:44:40 -04:00
config Change MPP bot config file location, fix channels in said config, and add a check to make sure we only chat in the desired channel 2024-06-13 21:44:40 -04:00
prisma
scripts
src Change MPP bot config file location, fix channels in said config, and add a check to make sure we only chat in the desired channel 2024-06-13 21:44:40 -04:00
test/api/data
.env.template
.gitignore
.prettierrc
README.md
bun.lockb Update packages 2024-06-13 21:42:10 -04:00
package.json Update packages 2024-06-13 21:42:10 -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)