bridge bot api for discord servers
Find a file
2022-02-15 13:41:30 +02:00
frontend fix gateway server listener memory leak and add token importing to the frontend 2022-02-07 19:59:26 +02:00
routes fix super tokens and add minecraft server bridge 2022-02-11 15:20:59 +02:00
scripts add join and leave messages to minecraft script 2022-02-15 13:41:30 +02:00
.gitignore Initial commit. 2022-02-01 00:01:11 +02:00
common.js hopefully make the DiscordClient connection more robust 2022-02-03 20:41:23 +02:00
config.js fix super tokens and add minecraft server bridge 2022-02-11 15:20:59 +02:00
DiscordClient.js hopefully improve discordclient reconnecting 2022-02-14 22:18:33 +02:00
GatewayServer.js fix super tokens and add minecraft server bridge 2022-02-11 15:20:59 +02:00
index.js Add GatewayServer and GatewayClient(frontend) 2022-02-06 03:48:28 +02:00
LICENSE fix super tokens and add minecraft server bridge 2022-02-11 15:20:59 +02:00
package.json fix super tokens and add minecraft server bridge 2022-02-11 15:20:59 +02:00
README.md improve client config and fix reconnect token bug 2022-02-07 16:14:43 +02:00
tokens.js add experimental "supertokens" that can send messages with any username or avatarurl 2022-02-10 01:15:39 +02:00
WatchedGuild.js add alive check for gateway and fix webhook message event bug 2022-02-06 22:58:38 +02:00
yarn.lock fix super tokens and add minecraft server bridge 2022-02-11 15:20:59 +02:00

bridge

bridge is an extensible program that allows bridging various chat applications, providing an API that bridge clients can use. Currently, it only supports bridging Discord to the bridge API.

Install

node and npm are required. yarn is recommended instead of npm. (If using yarn, replace occurrences of npm with yarn)

npm install

Before running it, you will probably want to edit the server's config.js to match the Discord guilds you'd like to bridge or change other settings.

Then, to run it:

DISCORD_TOKEN="your discord token" JWT_SECRET="jwt secret" node index.js

Building the frontend

You may also want to build the frontend web application.

First, install the dependencies:

cd frontend
npm install

Then, open src/config.js in your editor and update the values to match where you're hosting the bridge's http server. You may use a reverse proxy such as NGINX. If you just want to run and use it locally, the defaults are fine.

Once you're done tweaking the configuration, you can build it:

npm run build

Notice

This software may break the ToS of certain chat applications that do not allow bridging (either directly or indirectly). It is only for educational purposes and I am not responsible for any damage caused.