1.0.2 • Published 7 years ago
snakebot v1.0.2
snakebot
Snake Bot for https://epam-bot-challenge.com.ua/
- CLI, no browser required
- Recreates sessions on new days
- mocha+chai unit tests
- 🐍❤️

Installation
git clone https://github.com/jeka-kiselyov/snakebot.git
cd snakebot
npm installUsage
Configuration
For setting up credentials, use snakebot's config tool:
node app.js configAnswer 4 simple questions:
info: Going to update credentials...
prompt: Config name: (default)
prompt: Game server domain name: (epam-bot-challenge.com.ua)
prompt: username: example@gmail.com
prompt: readableName: Победитель Григорьевич
prompt: password: Configuration json object will be stored in config/ directory. Now you can run the bot node app.js play for the game using default config name or node app.js play configname for specific one.
Run the bot
Using default configuration
node app.js playor specific one
node app.js play confignameor using specific set of player logic
node app.js play configname norocks2you can check some player's settings here.
Run the bot in forever mode
Using forever.js, restarts the bot on failure, connection issues etc.
. start.shRun unit tests
Check them out in app/tests folder.
grunt testRun tests in live mode
Run tests each time .js file updated (you hit Ctrl+S in IDE):
grunt watchtestsLicense
GNU General Public License v3.0