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

https://github.com/dragonchaser/matrix-feeder

Matrix feeder is a matrix bot that monitors defined channels for images and posts them to another channel.
https://github.com/dragonchaser/matrix-feeder

matrix nodejs npm-package synapse

Last synced: 6 months ago
JSON representation

Matrix feeder is a matrix bot that monitors defined channels for images and posts them to another channel.

Awesome Lists containing this project

README

          

# matrix-feeder

Matrix feeder is a matrix bot that monitors defined channels for media and posts them to another channel.

## Why

I have lots of rooms where hobbyists post railway related photos and videos, usually there is lots of noise between them so I decided to channel these into one room to be able to see them as a feed.

## License

MIT see [LICENSE](https://github.com/dragonchaser/matrix-feeder/blob/master/LICENSE) file in this repository.

## Install & Run

- dependencies

```bash
$> git clone https://github.com/dragonchaser/matrix-feeder
$> cd matrix-feeder
$> npm install
- copy `config/config-example.json` to `config/config.json` & edit

**WARNING:** `targetRoomId` must not be present in the list of monitored Rooms, otherwise this will result in loops & lots of spam.

- run

```bash
$> node feeder.js
```

- invite the bot to the channels of your choice

**NOTE:** The bot will only relay media if the room is listet in the `monitorChannels` field in the config!

### Docker

#### run

- x86_64
```bash
$> docker run \
-v/path/to/you/config.json:/matrix-feeder/config/config.json \
dragonchaser/matrix-feeder:latest
```

- arm32v7 (raspberry pi 2 & 3)
```bash
$> docker run \
-v/path/to/you/config.json:/matrix-feeder/config/config.json \
dragonchaser/matrix-feeder:latest-arm32v7
```

#### build

```bash
$> git clone https://github.com/dragonchaser/matrix-feeder
$> cd matrix-feeder
$> docker build -f docker/Dockerfile -t : .
```