snakebot

1.0.2 • Public • Published

snakebot

Snake Bot for https://epam-bot-challenge.com.ua/

  • CLI, no browser required
  • Recreates sessions on new days
  • mocha+chai unit tests
  • 🐍❤️

snakebot

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:  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 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

Author

Jeka Kiselyov

Package Sidebar

Install

npm i snakebot

Weekly Downloads

2

Version

1.0.2

License

GPLv3

Unpacked Size

223 kB

Total Files

66

Last publish

Collaborators

  • jeka-kiselyov