Added -t option

This commit is contained in:
Jeremy Baxter 2022-07-29 08:12:43 +12:00
parent b98624bc78
commit 9591bcdaa6
5 changed files with 82 additions and 36 deletions

View file

@ -7,6 +7,7 @@ MATRIX-SEND(1) - General Commands Manual
# SYNOPSIS
**matrix-send**
\[**-t** *type*]
\[**-c**]
\[**-h**]
\[**-v**]
@ -16,23 +17,34 @@ MATRIX-SEND(1) - General Commands Manual
**matrix-send**
is a script to send a message to a Matrix room.
It works by sending a JSON request to your Matrix server. The message
type will always be m.text, but other options may be considered in the
future.
It works by sending a JSON message to your Matrix server. The default message
type is m.text, but you can specify a custom type with
*-t*.
The options are as follows:
**-t** *type*
> Change the event type to
> *type*.
> Currently supported types are
> *m.text*
> and
> *m.notice*.
> Default is
> *m.text*.
**-c**
> Clear cached access tokens.
**-h**
> Show a help menu, then exit.
> Show the help menu, then exit.
**-V**
> Print version and program information, then exit
> Print version and program information, then exit.
To begin, start by making a configuration file. This always has the location of
*~/.config/matrix-send.conf*.
@ -85,7 +97,7 @@ This will be something like
Type the Room ID as the argument after the message you wish to send.
You may have to escape the exclamation mark with a backslash. For example:
matrix-send "Hello world!" zyxwvutsrq:example.org
matrix-send "Hello world!" \!zyxwvutsrq:example.org
That should send a message saying
*Hello world!*
@ -117,4 +129,4 @@ There are currently no plans to add encryption to
matrix-send.conf(5)
OpenBSD 7.1 - July 28, 2022
OpenBSD 7.1 - July 29, 2022