New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

deepbot-simulator

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deepbot-simulator

Simulates the Deepbot API using a WebSocket

latest
Source
npmnpm
Version
0.6.0
Version published
Weekly downloads
7
-22.22%
Maintainers
1
Weekly downloads
 
Created
Source

deepbot-simulator

Command line tool that simulates a Deepbot API using a local WebSocket.

Screenshot

:warning: This is not a completely accurate simulation of how Deepbot answers your API calls.
It just imitates basic Deepbot functionality for testing your APIs.

Installation

npm

npm install -g deepbot-simulator

Yarn

yarn global add deepbot-simulator

Running

deepbot-simulator
  Usage: deepbot-simulator [options]

  Very basic WebSocket that simulates the Deepbot API


  Options:

    -k, --api-key [api-key]        API key used to give access
    -p, --port [port]              Port the WebSocket listens to
    -w, --no-color                 Port the WebSocket listens to
    -n, --no-users                 Keep the initial user database empty
    -a, --auth-all                 Automatically authenticate new clients
    -r, --randomLatency [latency]  Add response latencies from 0 to [latency] ms
    -e, --events                   Send random music and newsub events to API clients
    -h, --help                     Output usage information

Supported API calls

  • api|register|{secret}
  • api|get_user|{user}
  • api|get_points|{user}
  • api|add_points|{user}|{points}

The only user in the default database is jaidchen, so this is the testing procedure:

api|register|1234
api|get_points|jaidchen
api|add_points|jaidchen|322
api|get_points|jaidchen

FAQs

Package last updated on 27 Dec 2018

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