Skip to content

brokensandals/maubot-echo-to-file

Repository files navigation

This is a very basic maubot plugin that writes the messages it receives to a file.

Use case: using Matrix for note-taking. You send quick notes to the bot's account, it persists them.

Messages are appended to a file at a configured path. They're prepended with a timestamp; the format is currently hardcoded.

Attachments, both encrypted and unencrypted, are supported. The decrypted attachment is stored in a configured directory; the filename is a UUID and a file extension guessed based on mimetype. A message is appended to the main file linking to the attachment using markdown syntax (image links are used for images; normal links are used for all other files).

You can and probably should configure it to only record messages from specific users. No attempt is made to protect from markdown injection attacks.

Installation

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages