Go to file
Hri7566 ca89644205 Add dialogue 2024-10-12 09:43:41 -04:00
build Talkomatic stuff 2024-10-12 09:39:57 -04:00
config Talkomatic stuff 2024-10-12 09:39:57 -04:00
prisma Add kekklefruit (no item behavior yet) 2024-03-05 14:27:46 -05:00
scripts Talkomatic stuff 2024-10-12 09:39:57 -04:00
site Update bun, add site 2024-07-07 09:11:44 -04:00
src Add dialogue 2024-10-12 09:43:41 -04:00
test/api/data Make fish work 2024-02-22 20:27:51 -05:00
.env.template Add talkomatic 2024-10-12 01:21:38 -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 2024-10-11 19:08:35 -04:00
bun.lockb Talkomatic stuff 2024-10-12 09:39:57 -04:00
fish_icon.png Update README.md 2024-10-11 19:08:35 -04:00
package.json Talkomatic stuff 2024-10-12 09:39:57 -04:00
tsconfig.json Add talkomatic 2024-10-12 01:21:38 -04:00
tsconfig.talko.json Add talkomatic 2024-10-12 01:21:38 -04:00

README.md

Crucian Carp

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. Keep in mind that a connection token is required for all fishing service clients. These clients are for connecting to the actual service (such as Discord or MPP) and bridges the connection to the backend API. This way, the execution related to fishing itself is focused in its own process, instead of travelling between sending messages and processing fishing-related computations.

Next, install the project's dependencies from npm:

bun install
bunx prisma db push

Run both the HTTP API 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)