Simplet Bot for receive Webhooks and send to XMPP-Accounts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Go to file
HerrHase aa1a6c7f99
adding
9 months ago
packages/server adding 9 months ago
.env.example adding #1 2 years ago
.gitignore Initial commit 2 years ago
LICENSE Initial commit 2 years ago
README.md adding bugfix #6 2 years ago
package-lock.json adding 9 months ago
package.json adding 2 years ago
yarn.lock adding 9 months ago

README.md

tellme-bot

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.

Install

yarn install
yarn start

or

pm2 --name=tellme-bot start npm -- start

Konfiguration

APP_DEBUG=false
APP_PORT=

APP_API_TOKEN=
APP_API_ALLOWED_PARSERS=kuma

XMPP_SERVICE=
XMPP_DOMAIN=
XMPP_USERNAME=
XMPP_PASSWORD=
XMPP_TO=

Webhook

<domain>/api/v1/webhook/<parser>/<api-token>

health

<domain>/api/v1/health

Parsers

Existing Parsers,

  • Kuma / Getting Notifications from Kuma
  • Text / Getting "text" Parameter in JSON-Body

Custom Parsers

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.