Running
$ npm install
$ cd appservice
$ npm install
<Edit config file>
$ node main.js -r -u "http://appservice.endpoint.url" -c <config_file>
<Dump registration on HS>
$ node main -c <config_file> -p PORT
Adding accounts:
- Edit the config file.
Architecture
config[Account]
|
V
Matrix ---ASAPI---> AppService ---libpurple--> Remote Network
Flows:
Matrix-initiated:
- Matrix user invites `@network_$USERNAME:domain` to a room.
- Matrix user says something in this room.
- AppService forwards message to remote user.
Replies:
- Remote user responds to message.
- AppService forwards to all matrix rooms who have the @network_ user in them.
Remote network initiated:
- TODO
Replies:
- TODO
Shortcomings:
- Account is global not per user!
- Means you can't have >1 matrix user talk to remote user! Doesn't know which room to respond to.