A Discord Integration to push stats into a channel when triggered via API call.
- You need node installed (current LTS version or newer)
- Download the newest version of the code
- Rename the env file from
.env.tmp
to.env
- Open the env file (now
.env
) and set values. - Optional: Configure
package.json
- Run
npm install
.
Run app.ts
with ts-node src/app.js
or npm start
.
Alternative you can use npm run pm
, npm run pm-restart
and npm run pm-stop
.
This will use pm2 for executing
POST /stats
Trigger Webhook to post stats to Discord.