Skip to content

icyfry/serverless-bot

Repository files navigation

Serverless Bot

GitHub top language Build Quality Gate Status

⚠️ this is a experimentation project, DO NOT use it in a real use case, performance will most probably be negative.

A serverless bot to trigger automatic orders on dYdX

Content

  • doc documentation
  • src source code of the serverless function
  • test units and integration testing

Development

Tools

Setup

Create a .env file

BOT_NETWORK=testnet
BOT_DEBUG=false

Install dependencies, run unit tests and build

pnpm install
pnpm run test-unit-only
pnpm build

zlib-sync may cause segmentation fault on local development while running unit tests and not using mock for the discord module

Task Commands

  • task test Run all tests
  • task build Build with webpack
  • task build-and-deploy Build and deploy to AWS