e30b3b094b
Generated by `pyupgrade --py3-plus --keep-percent-format` followed by manual indentation fixes. Signed-off-by: Anders Kaseorg <anders@zulipchat.com> |
||
---|---|---|
.. | ||
interrealm_bridge_config.py | ||
README.md | ||
run-interrealm-bridge |
Inter-realm bot
Let realm_1
be the first realm, realm_2
be the second realm. Let bot_1
be
the relay bot in realm_1
, bot_2
be the relay bot in realm_2
.
This bot relays each message received at a specified topic in a specified
stream from realm_1
to a specified topic in a specified stream in realm_2
.
Steps to create an inter-realm bridge:
- Register a generic bot (
bot_1
) inrealm_1
- Enter the api info of
bot_1
into the config file (interrealm_bridge_config.py) - Create a stream in
realm_1
(stream_1
) and a topic for the bridge - Make sure
bot_1
is subscribed tostream_1
- Enter the stream and the topic into the config file.
- Do step 1-5 but for
bot_2
and with all occurrences of_1
replaced with_2
- Run the script
run-interrealm-bridge
If the --stream
flag is added (i.e. run-interrealm-bridge --stream
), then
the mirroring granularity becomes stream-wide. Instead of one topic, all
topics within the stream are mirrored as-is without translation.