Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.47 KB

README.md

File metadata and controls

54 lines (40 loc) · 1.47 KB

GHost.js

Ghost++ — is a Warcraft III game hosting bot. As the original project https://github.com/w3gh/ghostplusplus based on https://github.com/w3gh/ghost,

This version is a try to port ghost++ to js

Docker usage

Firstly you need download docker from https://www.docker.com/get-started Then you need to build image with all libbncsutil and libstorm libraries Also you can edit config.json to provide your own credentials for battle.net, currently only PvPGN is supported

cd path/to/ghost.js
docker build -t w3gh/ghost.js .

After, when image successfully builds, you need run it

docker run w3gh/ghost.js

And you will see log of running bot

Usage

You need compiled libbncsutil.dylib or libbncsutil.so or bncsutil.dll in directory root.

And setup server credentials in config.json

git clone https://github.com/w3gh/ghost.js.git ghost
cd ghost
npm i
npm start

Preview

it will display colored chat info like on screenshot below

asciicast

Manual compilation of bncsutil and storm libs

sudo apt-get install -y cmake git libboost-all-dev build-essential libgmp-dev zlib1g-dev libbz2-dev libmysql++-dev

cd bncsutil
mkdir build
cmake -G "Unix Makefiles" -B./build -H./
cd build && make && sudo make install

cd StormLib
mkdir build
cmake -G "Unix Makefiles" -B./build -H./
cd build && make && sudo make install