simple but convenient CLI-based Matrix client app for sending and receiving
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.
 
 
 
8go 0133592d2a removed soft link "mc" 3 months ago
..
README.md removed soft link "mc" 3 months ago
template-msc2676-edit.json introduced an event-templates "repository" 3 months ago
template-msc2677-react.json introduced an event-templates "repository" 3 months ago
template-msc3440-thread.json introduced an event-templates "repository" 3 months ago

README.md

Templates for Matrix Events

matrix-commander supports sending events via the command line argument --event. The events are specified as JSON objects. The format is specified by MSCs (Matrix Spec Changes). See https://github.com/matrix-org/matrix-spec-proposals for details.

Here is a collection of templates for frequently used events. The templates have placeholders (usually %s for a string, %d for an integer, and so forth as described in printf).

In your scripts or programs use the templates as follows:

  • read a template
  • replace the placeholders with your desired valid values
  • send the event via matrix-commander.py --event

An example bash script that uses event templates can be found it tests/test-event.sh. Have a look at it.

If you use events not listed here, please file a PR and submit your event template to this collection so that others can take advantage of it as well. Thank you!