Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

snakebot

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snakebot

Snake Bot for epam-bot-challenge.com.ua

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 14 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc