#org #stdin #password #send #read #html #json-lines

app send_glitch

Read jsonlines from stdin, write messages to matrix.org

4 releases (2 breaking)

0.4.0 Sep 14, 2022
0.3.0 Jan 14, 2021
0.2.2 Jan 10, 2021
0.2.1 Apr 1, 2020

#41 in #org

MIT/Apache

18KB
76 lines

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

Usage:

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

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

Dependencies

~17–32MB
~512K SLoC