matrix-commander/event-templates
8go 0133592d2a removed soft link "mc"
- let's do not force the softlink upon the user
- every user who wants something shorter then "matrix-commander.py" can create his/her own soft link or alias, etc.
2022-05-25 17:08:54 +02:00
..
README.md removed soft link "mc" 2022-05-25 17:08:54 +02:00
template-msc2676-edit.json introduced an event-templates "repository" 2022-05-25 15:37:34 +02:00
template-msc2677-react.json introduced an event-templates "repository" 2022-05-25 15:37:34 +02:00
template-msc3440-thread.json introduced an event-templates "repository" 2022-05-25 15:37:34 +02:00

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! ❤️