dani / patrix

Simple command line Matrix client written in perl
MIT License
3 stars 1 forks source link
matrix perl

patrix is a simple command line client for Matrix written in perl. It can create and configure rooms, send text messages or files to rooms. I use it to send Zabbix alerts to a Matrix room, a bit like sendxmpp can do with XMPP.

It requires the following perl modules

Here're the vailable options:

All the actions can be specified either with --action=foo or as --fo (eg --action=send-file is equivalent to --send-file)

All the available options can be set a the configuration file using a simple ini style format, eg

user=alert
password=p@ssw0rd
room=!BWdARvAgNQGgSjgtAG:matrix.domain.com

Options given on the command line take precedence over the config file

Examples: