Send Discord Webhook notifications for new Juicebox projects and payments.
- Install dependencies:
npm i
- Create a .env file:
cp .example.env .env
-
Fill out your .env file.
juicebox-heartbeat
uses the Juicebox Subgraph to query new events. -
Install node.js (>=18.0.0), and run on a cronjob. By default,
juicebox-heartbeat
queries the previous 60 seconds of events. An example cronjob:
* * * * * timeout 120s /usr/bin/node /juicebox-heartbeat/main.js