Skip to content
Extraits de code Groupes Projets
Valider 07825b81 rédigé par Will Hunt's avatar Will Hunt
Parcourir les fichiers

Add setup instructions and a screenshot to README

parent b07503ec
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
# matrix-appservice-discord
A very WIP bridge between Matrix and Discord in node.
# Features:
A bridge between [Matrix](http://matrix.org/) and [Discord](https://discordapp.com/).
Currently the bridge is alpha quality, but is usable.
![Screenshot of Riot and Discord working together](screenshot.png)
## Setting up
(These instructions were tested against Node.js v6.9.5 and the Synapse homeserver)
### Setup the bridge
* Run ``npm install`` to grab the dependencies.
* Run ``npm build`` to build the typescript.
* Copy ``config/config.sample.yaml`` to ``config.yaml`` and edit it to reflect your setup.
* Run ``node build/discordas.js -r -u "http://localhost:9005/" -c config.yaml``
* Modify your HSs appservices config so that it includes the generated file.
### Setting up Discord
* Create a new application via https://discordapp.com/developers/applications/me/create
* Make sure to create a bot user. Fill in ``config.yaml``
* Run ``npm run-script getbotlink`` to get a authorisation link.
* Give this link to owners of the guilds you plan to bridge.
* Finally, you can join a room with ``#_discord_GuildName#channelname``
* Where the guild name has the spaces replaced with ``-``.
## Features and Roadmap
- [x] Group messages
- [ ] Direct messages
......@@ -19,8 +44,12 @@ A very WIP bridge between Matrix and Discord in node.
- [x] Audio/Video content
- [x] Typing notifs
- [x] User Profiles
- [ ] Presence
- [x] Presence (Synapse currently squashes presence, waiting on future spec)
- [ ] Webhooks (allows for prettier messages to discord)
- [ ] Rooms react to Discord updates
- [ ] Manage channel from Matrix
- [ ] VOIP (**Hard** | Unlikely to be finished anytime soon)
## Contact
My Matrix ID: [@Half-Shot:half-shot.uk](https://matrix.to/#/@Half-Shot:half-shot.uk)
screenshot.png

775 ko

......@@ -45,7 +45,7 @@ export class DiscordBot {
}
const channel = guild.channels.find((c) => {
return ((c.id === room || c.name.toLowerCase().replace(/ /g, "-") === room.toLowerCase() ) && c.type === "text");
return ((c.id === room || c.name.toLowerCase() === room.toLowerCase() ) && c.type === "text");
});
if (channel === null) {
return Promise.reject(`Channel "${room}" not found`);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter