#send #token #echo #stdin #read #channel #glitch

app send_glitch

Read jsonlines from stdin, write messages to matrix.org

3 unstable releases

0.3.0 Jan 14, 2021
0.2.2 Jan 10, 2021
0.2.1 Apr 1, 2020

MIT/Apache

11KB
85 lines

Read jsonlines from stdin, send matrix.org message to configured channel.

Usage:

echo '
---
token: ""
password: "<password>"
room: "#roomname:matrix.org"
account: "cooluser"
html_json_key: "html"
' > config.yaml

$ echo '{ "html": "<a href=\"https://google.com\">My google link</a>" }' | cargo run

Dependencies

~15MB
~293K SLoC