UrBridge makes the connetion between the chats of urlab (irc, urlab discord, CI discord)
Find a file
2026-06-07 13:40:49 +02:00
Bridge readd irc because I forgor 2026-04-07 22:12:20 +02:00
DiscordBot fix unhandled timeout on members fetch 2026-02-26 20:58:42 +01:00
IRCBot differentiate formatting of messages between channels 2025-02-19 21:08:46 +01:00
MatrixBot add basic support for matrix 2026-04-07 21:16:06 +02:00
.gitignore Working on IRC Bot 2024-02-12 23:42:27 +01:00
Dockerfile update readme, disallow postinstall scripts in npm install 2026-06-07 13:40:49 +02:00
index.js add basic support for matrix 2026-04-07 21:16:06 +02:00
package.json add basic support for matrix 2026-04-07 21:16:06 +02:00
README.md update readme, disallow postinstall scripts in npm install 2026-06-07 13:40:49 +02:00

BridgeBot

This is a Bridge made to tie Discord Channels and IRC Channels. It works by using a Discord bot and a IRC Client.

Installation

docker

build l'image:

podman build -t urbridge:latest .

run un container temporaire (pour l'instant le bot ne sauve aucune data, donc il n'y a pas d'inconvénient à le recréer à chaque démarrage et delete quand il est arêté):

podman run --name urlab_viaduk --rm --env-file .env urbridge:latest

il faut un fichier .env spécifiant les variables suivantes:

  • DISCORD_TOKEN,
  • IRC_HOST, l'adresse du serveur irc
  • IRC_PORT, le port
  • NICKNAME, le nom du bridge sur irc

sur le vps

podman run --network host -d --name urlab_viaduk --rm --env-file .env urbridge:latest

Matrix

pour regénérer un token:

curl -X POST "https://matrix.urlab.be/_matrix/client/v3/login" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "m.login.password",
    "identifier": {
      "type": "m.id.user",
      "user": "urbridge"
    },
    "password": "password"
  }'

puis mettre le token dans .env

si vous avez pas le password niquez vous

to do

  • ajouter les /command du lechebot pour avoir l'auto completion de discord
  • utiliser des web hook pour poster des messages avec le nom et pp de l'utilisateur sur discord
  • permetre de lier le compte discord au compte irc