/juicebox-heartbeat

Send Discord webhook notifications for new Juicebox projects and payments.

Primary LanguageJavaScript

juicebox-heartbeat

Send Discord Webhook notifications for new Juicebox projects and payments.

How to Run

  1. Install dependencies:
npm i
  1. Create a .env file:
cp .example.env .env
  1. Fill out your .env file. juicebox-heartbeat uses the Juicebox Subgraph to query new events.

  2. 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