Mirror of the 'Export Matrix Messages' tool
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.
 
 
Aine 7d940b6ee4 Add LICENSE 3 months ago
cmd added ability to ignore users 5 months ago
contrib init 6 months ago
export expose CreatedAtFull 5 months ago
flags added ability to ignore users 5 months ago
matrix added ability to ignore users 5 months ago
vendor init 6 months ago
.gitlab-ci.yml added gitlab CI, goreleaser, linter, README, proper makefile, fixed codestyle 6 months ago
.golangci.yml added gitlab CI, goreleaser, linter, README, proper makefile, fixed codestyle 6 months ago
.goreleaser.yml added gitlab CI, goreleaser, linter, README, proper makefile, fixed codestyle 6 months ago
LICENSE Add LICENSE 3 months ago
Makefile added gitlab CI, goreleaser, linter, README, proper makefile, fixed codestyle 6 months ago
README.md added chat link 5 months ago
go.mod init 6 months ago
go.sum init 6 months ago

README.md

emm: Export Matrix Messages Matrixko-fi coverage report Go Report Card Go Reference

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

Features

  • Get messages from any matrix room with pagination (if limit greather than page, to prevent timeout errors) or without it (if limit less or equals page)
  • Export messages to one file for all messages
  • Export each message in separate file
  • Custom templates supported (contrib contains an example of hugo post template, etke.cc/webite can be used as reference)
  • Delegation and aliases supported
  • Anyone/world_readable access supported without invite

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

  • Releases for freebsd, linux and MacOS
  • or go install gitlab.com/etke.cc/emm@latest / make install
  • or from source code