From 971f249ef38f52f3034fcb5a2e813657ce2eaace Mon Sep 17 00:00:00 2001 From: oof2win2 Date: Wed, 10 Aug 2022 23:11:59 +0200 Subject: [PATCH] Update installation.md --- INSTALLATION.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/INSTALLATION.md b/INSTALLATION.md index 9ac107b..d28c2af 100644 --- a/INSTALLATION.md +++ b/INSTALLATION.md @@ -29,9 +29,10 @@ ## Bot Installation 1. Clone the repository and install dependencies with `git clone https://github.com/DistroByte/AwF-Bot && cd AwF-Bot && npm i` -2. Populate your `config.js` file from the example (`config.example.js`) -3. Populate your `servers.js` file from the example (`servers.example.js`) -4. If files like `script-output/ext/awflogging.out` don't exist in your Factorio server folders, make sure they exist. All of the file names are in [config.example.js](config.example.js#L38). They can be blank. +2. Populate your `config.ts` file from the example (`config.example.ts`) +3. Populate your `servers.ts` file from the example (`servers.example.ts`) +4. If files like `script-output/ext/awflogging.out` don't exist in your Factorio server folders, make sure they exist. All of the file names are in [config.example.js](config.example.ts#L40). They can be blank. 5. Optimally, install the [Discord integration mod](https://mods.factorio.com/mod/Factorio-Discord-BotIntegration/discussion/60e4b5bf4b7e496a4faed8d1) for an easy setup, or for more features, install the [scenario for Factorio](https://github.com/explosivegaming/scenario/) onto each server as a scenario, as it has more features 6. Set the database up with `npx prisma generate && npx prisma db push` -7. Run with `node .` or using PM2 +7. Build the code with `npm run build` +8. Run with `node .` or using PM2