mx-puppet-xmpp/README.md

73 lines
2.0 KiB
Markdown
Raw Permalink Normal View History

2021-11-12 13:07:57 +00:00
[![donate](https://liberapay.com/assets/widgets/donate.svg)](https://liberapay.com/rkd/donate)
2020-04-02 20:26:55 +00:00
2021-11-12 13:07:57 +00:00
# [WIP] mx-puppet-xmpp
This is a xmpp puppeting bridge for matrix. It is based on [mx-puppet-bridge](https://github.com/Sorunome/mx-puppet-bridge) and provide multi-user instances.
##
2020-04-02 20:26:55 +00:00
## Quick start using Docker
2021-11-12 13:07:57 +00:00
To build docker image:
```
docker build -t mx-puppet-xmpp:latest .
```
2020-04-02 20:26:55 +00:00
For docker you probably want the following changes in `config.yaml`:
```yaml
bindAddress: '0.0.0.0'
filename: '/data/database.db'
file: '/data/bridge.log'
```
Also check the config for other values, like your homeserver domain.
## Install Instructions (from Source)
* Clone and install:
```
2021-11-12 13:07:57 +00:00
git clone https://github.com/Sorunome/mx-puppet-xmpp.git
cd mx-puppet-xmpp
2020-04-02 20:26:55 +00:00
npm install
* Edit the configuration file and generate the registration file:
```
cp sample.config.yaml config.yaml
2021-11-12 13:07:57 +00:00
# fill info about your homeserver and xmpp app credentials to config.yaml manually
2020-04-02 20:26:55 +00:00
npm run start -- -r # generate registration file
or
2021-11-12 13:07:57 +00:00
docker run -v </path/to/host>/data:/data -it mx-puppet-xmpp -r
2020-04-02 20:26:55 +00:00
```
* Copy the registration file to your synapse config directory.
* Add the registration file to the list under `app_service_config_files:` in your synapse config.
* Restart synapse.
* Start the bridge:
```
npm run start
```
2021-11-12 13:07:57 +00:00
* Start a direct chat with the bot user (`@_xmpppuppet_bot:domain.tld` unless you changed the config).
2020-04-02 20:26:55 +00:00
(Give it some time after the invite, it'll join after a minute maybe.)
2021-11-12 13:07:57 +00:00
* Get your Xmpp username and password as below, and tell the bot user to link your xmpp account:
2020-04-02 20:26:55 +00:00
```
link <username> <password>
```
* Tell the bot user to list the available rooms: (also see `help`)
```
list
```
Clicking rooms in the list will result in you receiving an invite to the bridged room.
2021-11-12 13:07:57 +00:00
## Working
- link
- text messages (mx -> xmpp)
- text messages (xmpp -> mx)
## TODO
2021-11-12 14:42:34 +00:00
- fix "Replaced by new connection"
2021-11-12 13:07:57 +00:00
- replies
- edits
- deletes
- images
- files