Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/w3gh/ghost.js
Try to port Warcraft3 Game Host Ghost++ to js
https://github.com/w3gh/ghost.js
battle-net battlenet bnet bot ghost ghostpp host javascript mpq war3 warcraft warcraft3
Last synced: 5 days ago
JSON representation
Try to port Warcraft3 Game Host Ghost++ to js
- Host: GitHub
- URL: https://github.com/w3gh/ghost.js
- Owner: w3gh
- License: mit
- Created: 2015-04-26T08:39:53.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-01-28T09:13:52.000Z (about 1 year ago)
- Last Synced: 2024-04-29T22:22:56.913Z (10 months ago)
- Topics: battle-net, battlenet, bnet, bot, ghost, ghostpp, host, javascript, mpq, war3, warcraft, warcraft3
- Language: TypeScript
- Homepage:
- Size: 30.2 MB
- Stars: 25
- Watchers: 9
- Forks: 4
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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```bash
cd path/to/ghost.js
docker build -t w3gh/ghost.js .
```
After, when image successfully builds, you need run it
```bash
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`
```bash
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[](https://asciinema.org/a/75HoG34I0UEk9lNvDqeO430Cp)
## Manual compilation of bncsutil and storm libs
```bash
sudo apt-get install -y cmake git libboost-all-dev build-essential libgmp-dev zlib1g-dev libbz2-dev libmysql++-devcd bncsutil
mkdir build
cmake -G "Unix Makefiles" -B./build -H./
cd build && make && sudo make installcd StormLib
mkdir build
cmake -G "Unix Makefiles" -B./build -H./
cd build && make && sudo make install
```