diff --git a/package.json b/package.json index c160747..2c8f334 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "start": "ts-node ./src/cli/host.ts --config=./config.json", "debug": "node --inspect -r ts-node/register ./src/cli/host.ts --config=./config.json", "dev": "env GHOST_DEBUG=hex,log ts-node ./src/cli/host.ts --config=./config.json", + "test-run": "env NODE_ENV=test ts-node ./src/cli/host.ts --config=./test_config.json", "build": "tsc" }, "repository": { diff --git a/test_config.json b/test_config.json new file mode 100644 index 0000000..fb42b7f --- /dev/null +++ b/test_config.json @@ -0,0 +1,43 @@ +{ + "bnet": [ + { + "enabled": true, + "server": "server.pvpgn.pro", + "alias": "pvpgn.pro 1", + "username": "jilizart", + "password": "jilizart", + "firstchannel": "w3", + "custom": { + "war3version": "27", + "passwordhashyype": "pvpgn" + }, + "localeid": 1033, + "war3exe": "./war3/1.27b/war3.exe", + "stormdll": "./war3/1.27b/Storm.dll", + "gamedll": "./war3/1.27b/game.dll", + "commandtrigger": "!", + "plugins": { + "chat": { + "consolePrint": true + } + } + } + ], + "bot": { + "hostport": 6112, + "defaultmap": "map", + "mapcfgpath": "./maps", + "commandtrigger": "!", + "war3path": "./war3/1.27b/", + "war3version": "27", + "plugins": { + "chat": { + "consolePrint": true + } + } + }, + "admingame": { + "create": true, + "port": 6112 + } +}