This repository has been archived by the owner on Jul 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Get Started
TheSnowfield edited this page May 15, 2021
·
8 revisions
BotArcAPI needs NodeJS to working correctly
$ sudo apt update
$ sudo apt install nodejs npm
Click here to download latest stable version
You might need to install node-pre-gyp
to compile the native extensions such as sqlite3 and archash4fall.
$ npm i -g node-pre-gyp
$ cd ./botarcapi \
&& npm i \
&& npm i -g typescript \
&& tsc --build .
$ npm start
You could edit source/corefunc/config.ts
directly or using environment variables via batch or sh scripts.
For example (windows)
@echo off
set BOTARCAPI_CONFIG={"SERVER_PORT": 80, "BOTARCAPI_VERSTR": "Hello"}
npm start
pause
Click here to view all available field