snakebot
v1.0.2
Published
Snake Bot for epam-bot-challenge.com.ua
Downloads
21
Maintainers
Readme
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 install
Usage
Configuration
For setting up credentials, use snakebot's config tool:
node app.js config
Answer 4 simple questions:
info: Going to update credentials...
prompt: Config name: (default)
prompt: Game server domain name: (epam-bot-challenge.com.ua)
prompt: username: [email protected]
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 play
or specific one
node app.js play configname
or using specific set of player logic
node app.js play configname norocks2
you 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.sh
Run unit tests
Check them out in app/tests
folder.
grunt test
Run tests in live mode
Run tests each time .js file updated (you hit Ctrl+S in IDE):
grunt watchtests
License
GNU General Public License v3.0