Skip to content

Instantly share code, notes, and snippets.

View travnewmatic's full-sized avatar

Travis Newman travnewmatic

View GitHub Profile
Hello world!
#!/bin/bash
# Adjust homserver, room, and accesstoken to your particular setup
# Script is expecting data to be piped in on STDIN
# Example:
# echo "some text" | sendmatrix
msgtype=m.text
homeserver=<homeserver>
room=<room id>
#!/bin/bash
# substitute with your variables
# grabs all arguments and dumps them into the body of the message
MSGTYPE=m.text
BODY=$@
HOMESERVER=<homeserver goes here>
ROOM=<room id goes here>
ACCESSTOKEN=<access token goes here>