From e3dc5ac12c68f0c555cebbe68017aee786a5f8d1 Mon Sep 17 00:00:00 2001 From: Will Hunt <will@half-shot.uk> Date: Mon, 18 Jun 2018 10:53:14 +0100 Subject: [PATCH] Add protocol to reg file by default --- README.md | 9 +++------ src/discordas.ts | 1 + 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 71f5031..ea31891 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Matrix Discord Bridge A bridge between [Matrix](http://matrix.org/) and [Discord](https://discordapp.com/). -Currently the bridge is in **Beta** and quite usable for everyday +Currently the bridge is in **Beta** and quite usable for everyday bridging, with one or two bugs cropping up.  @@ -50,11 +50,8 @@ Please also be aware that this is an unoffical project worked on in my (Half-Sho #### 3PID Protocol Support This bridge support searching for rooms within networks via the 3pid system -used in clients like [Riot](https://riot.im). However, it requires a small -manual change to your registration file. Change the end of -`discord-registration.yaml` to `protocols: ["discord"]`` and restart both your -bridge and synapse. Any new servers/guilds you bridge should show up in the -network list on Riot and other clients. +used in clients like [Riot](https://riot.im). Any new servers/guilds you bridge +should show up in the network list on Riot and other clients. ### Setting up Discord diff --git a/src/discordas.ts b/src/discordas.ts index 7465806..f313a7d 100644 --- a/src/discordas.ts +++ b/src/discordas.ts @@ -33,6 +33,7 @@ function generateRegistration(reg, callback) { reg.addRegexPattern("users", "@_discord_.*", true); reg.addRegexPattern("aliases", "#_discord_.*", true); reg.setRateLimited(false); + reg.setProtocols(["discord"]); callback(reg); } -- GitLab