etkecc / emm

GNU Affero General Public License v3.0
3 stars 1 forks source link
cli matrix-org

emm: Export Matrix Messages

A CLI tool that joins the room and exports last N messages to the file you specified.

Features

Usage

Full example

That's how etke.cc/website news generated

emm -hs hs.url -u user -p pass -r "#room:hs.url" -t contrib/hugo-post-template.md -o /tmp/%s.md

Documentation

Usage of emm:
  -hs string
        Homeserver URL (supports delegation)
  -l int
        Messages limit
  -o string
        Output filename. If it contains %s, it will be replaced with event ID (one message per file)
  -p string
        Password of the matrix user
  -r string
        Room ID or alias
  -t string
        Template file. Default is JSON message struct
  -u string
        Username/Login of the matrix user

How to get