- Python 100%
| mautrix_romeo | ||
| tests | ||
| .gitignore | ||
| pyproject.toml | ||
| README.md | ||
mautrix-romeo
A Matrix–Romeo puppeting bridge built on mautrix-python and romeotools.
Setup
python -m venv .venv && .venv/bin/pip install . # add [e2be] for encryption, [postgres] for Postgres
cp mautrix_romeo/example-config.yaml config.yaml # edit homeserver, permissions
.venv/bin/mautrix-romeo -g -c config.yaml -r registration.yaml
# add registration.yaml to the homeserver's app_service_config_files, restart it
.venv/bin/mautrix-romeo -c config.yaml -r registration.yaml
Then start a chat with @romeobot:<your server> and send login <username>. The bot asks for
the password in the next message and deletes it again. The password is not stored, only the
session.
Read receipts need appservice.ephemeral_events: true (the default) and a homeserver that
supports MSC2409.
How it works
Romeo has no push channel, so the bridge polls the conversation list every
bridge.poll.interval seconds. Rooms are created when there is new activity, not at login.
To start a chat from Matrix, invite @romeo_<romeo user id>:<your server>.
Read status
Romeo tracks read status per message, and loading a chat doesn't change it. New messages
are bridged right away, in order. By default, when you read the room in Matrix, the bridge
marks the messages up to the one you read as read on Romeo, one request per message. With
bridge.mark_read: reply, reading alone leaves them unread on Romeo; they are marked read
when you send a message in that chat from Matrix. Each user can override the config
default with markread read, markread reply or markread default. If you read
the chat on Romeo directly, the bridge notices on the next poll; with double puppeting it
also marks the room read in Matrix.
Online status
The bridge checks Romeo constantly, so Romeo shows you as online the whole time it is
connected. With Romeo PLUS you can hide that with status invisible; free accounts can't.
The bot says so after login.
Pictures
Romeo needs pictures to be uploaded before they can be sent. The bridge uploads them to a
PRIVATE album (bridge.pictures.album_name). It deletes them after
bridge.pictures.retention_days, once the messages they were sent in have expired. Deleting a
picture earlier would break it in the sent message.
Not supported
Edits, reactions, redactions, typing and presence; Romeo has no equivalent for them.