https://github.com/jaid/deepbot-simulator
Simulates the DeepBot API using a WebSocket as described on https://github.com/DeepBot-API/client-websocket
https://github.com/jaid/deepbot-simulator
backend cli deepbot deepbot-api deepbot-server deepbot-simulator tool websocket
Last synced: about 2 months ago
JSON representation
Simulates the DeepBot API using a WebSocket as described on https://github.com/DeepBot-API/client-websocket
- Host: GitHub
- URL: https://github.com/jaid/deepbot-simulator
- Owner: Jaid
- License: mit
- Created: 2017-08-11T06:52:14.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2022-12-03T15:51:13.000Z (over 2 years ago)
- Last Synced: 2025-04-20T08:19:28.580Z (3 months ago)
- Topics: backend, cli, deepbot, deepbot-api, deepbot-server, deepbot-simulator, tool, websocket
- Language: JavaScript
- Homepage:
- Size: 428 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
# deepbot-simulator
[](https://greenkeeper.io/)
Command line tool that simulates a [Deepbot API](https://github.com/DeepBot-API/client-websocket) using a local WebSocket.

: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
```bash
npm install -g deepbot-simulator
```Yarn
```bash
yarn global add deepbot-simulator
```## Running
```bash
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
```