An open API service indexing awesome lists of open source software.

https://github.com/gtrias/amqp-notifier

Listen to amqp events and redirect messages to instant messaging system
https://github.com/gtrias/amqp-notifier

amqp-notifier nodejs rabbitmq telegram telegram-bot

Last synced: 3 months ago
JSON representation

Listen to amqp events and redirect messages to instant messaging system

Awesome Lists containing this project

README

          

# amqp-notifier

This bot will send messages to Telegram and Slack when a rabbitmq event is triggered, it uses
nunjucks template defined in exchange configuration to show a comprehensive message to the receiver.

## Running

### Using docker

```bash
docker run -e NODE_CONFIG='{}' -ti gtrias/amqp-notifier
```

### Using native nodejs

(Edit your `config/default.json`)

```bash
npm install
npm start
```

## Configuration

Check out `config/default.json` file to see all configurable fields

Exchanges configuration example:

```javascript
"exchanges": [
{
"name": "whatever.created",
"template": "your exchange nunjucks template {{ some.amqp.msg.field }}"
}
]
```