dragonchaser / matrix-feeder

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

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 file in this repository.

Install & Run

  • dependencies

    $> 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

    $> 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

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

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

build

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

About

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

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

License:MIT License


Languages

Language:JavaScript 76.7%Language:Shell 15.1%Language:Dockerfile 8.1%