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.
- Host: GitHub
- URL: https://github.com/dragonchaser/matrix-feeder
- Owner: dragonchaser
- License: mit
- Created: 2020-10-14T11:53:08.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-19T10:45:55.000Z (over 1 year ago)
- Last Synced: 2025-03-27T11:38:09.137Z (6 months ago)
- Topics: matrix, nodejs, npm-package, synapse
- Language: JavaScript
- Homepage: https://github.com/dragonchaser/matrix-feeder
- Size: 18.6 KB
- Stars: 21
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 : .
```