Low Balance Bot
This bot watches Ethereum addresses and sends out email notifications if they fall below a threshold.
Words in ALL_CAPS are environment variables. See
.env.example
for more information on them.
Thi bot will periodically query every address in WALLETS, and if notify if any one falls below a threshold.
- Tested on NodeJS version 11
- Clone this repo.
- Duplicate
.env.example
, rename it to.env
and fill in the environment variables. - Run
yarn
to install dependencies and thenyarn start
to run the service in development mode.
To run the service in production mode use
node -r dotenv/config index.js
.
To start with PM2 use
pm2 start --node-args="-r dotenv/config" index.js --name low-balance-bot
If switching networks, remember to clean the database with
yarn clean
.
yarn format
- Lint, fix and prettify all the project. .js files with styled components and .js files.yarn run cz
- Run commitizen.
See CONTRIBUTING.md.