A very simple bash script that can be used to send a message to a Matrix room. Probably broken in ways that I have not experienced
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Bruno BELANYI 007994e0a2
continuous-integration/drone/push Build is passing Details
nix: migrate from deprecated attributes
10 months ago
.drone.yml ci: add Drone CI 2 years ago
.envrc nix: evaluate shell hooks 2 years ago
.gitignore git: ignore generated pre-commit configuration 2 years ago
README.md doc: mention pandoc formatting 2 years ago
flake.lock nix: add flake 2 years ago
flake.nix nix: migrate from deprecated attributes 10 months ago
matrix-notifier matrix-notifier: use link formatting when enabled 2 years ago



This is a simple to send a message to a Matrix room. It automatically logs in and sends the message when invoked. This was written to be used a notification script in my CI/CD pipelines.

How to use

You need to define the following environment variables for the script to be executed correctly:

  • USER: the user to login as.
  • PASS: the password to login with.
  • ADDRESS: the address of the homeserver to connect to.
  • ROOM: the room id, as can be found in the room parameters.
  • MESSAGE: the message you wish to send to the room.


export ADDRESS='https://matrix.org'
export USER='username'
export PASS='password'
export ROOM='!aaaaaaaaaaaaaaaaaa:matrix.org'
export MESSAGE='This is my test message'

How to run/install

This script is packaged with Nix, you can just use nix run . to run it.

The only dependencies are bash, curl, and jq, install those and you should be ready to go! Format is needed when using formatting (enabled by default).