diff options
author | Oxbian <got.dacs@slmail.me> | 2023-04-24 11:31:49 +0200 |
---|---|---|
committer | Oxbian <got.dacs@slmail.me> | 2023-04-24 11:31:49 +0200 |
commit | c62fce738c590a85427491a77673582dfc4d784e (patch) | |
tree | 2836e5663fdd457da8d3f671b58feafa84173649 /README.md | |
parent | c1f6a7c3c7f7998164f20efcb2d007ca6e8e824d (diff) | |
download | matrix-sender-c62fce738c590a85427491a77673582dfc4d784e.tar.gz matrix-sender-c62fce738c590a85427491a77673582dfc4d784e.zip |
Adding matrix.sh & readme
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..efa3dce --- /dev/null +++ b/README.md @@ -0,0 +1,62 @@ +# Matrix Sender +------ + +This script allows you to send simple unencrypted message & html to matrix. +It can be usefull for logging / cronjobs error or monitoring. + +## Install + +This script **is dependent of jq & curl**. + +To install the script, just clone this repo: +```bash +git clone https://github.com/oxbian/matrix-sender.git +``` + +## Usage + +First you need to edit the script with your homeserver url & the roomID + +After this you need to get your token +```bash +./matrix.sh -t <username> <password> +``` + +Once all is setup, you can send messages: +- Simple message +```bash +./matrix.sh -s <message> +``` + +- HTML formatted message +```bash +./matrix.sh -html <message> +``` + +For help you can use: +```bash +./matrix.sh -h +``` + +```bash +./matrix.sh --help +``` + +**Exemple** +```bash +./matrix.sh -s 'Hello world!' +``` + +```bash +./matrix.sh -html '<h1 class="test"> t e s t </h1>' +``` + +## Contributing + +If you want to contribute, make a pull request with your contribution. + +## License + +This project is under the GPLv3 license, you can use it in your project but not in closed sources ones. +Sharing project is what make the world live, think about it. + |