Simple Bot to receive Webhooks, parse and send them as Message to a XMPP-account. The idea result from the missing support of Kuma for sending Notifications with XMPP.
yarn install
yarn start
or
pm2 --name=tellme-bot start npm -- start
APP_DEBUG=false
APP_PORT=
APP_API_TOKEN=
APP_API_ALLOWED_PARSERS=kuma
XMPP_SERVICE=
XMPP_DOMAIN=
XMPP_USERNAME=
XMPP_PASSWORD=
XMPP_TO=
<domain>/api/v1/webhook/<parser>/<api-token>
<domain>/api/v1/health
Existing Parsers,
- Kuma / Getting Notifications from Kuma
- Text / Getting "text" Parameter in JSON-Body
Create a new Class, extends is with parser.js, add a parser-function and add the name of the file in the .env to APP_API_ALLOWED_PARSERS.