UrBridge makes the connetion between the chats of urlab (irc, urlab discord, CI discord)
Find a file
2025-02-26 12:21:02 +01:00
Bridge trying a smart ping method, ping is neutralized if the user pinged is in the channel of origin (mostly useless, because you cant ping a user that is not in the channel where the message is comming from) 2025-02-26 12:21:02 +01:00
DiscordBot trying a smart ping method, ping is neutralized if the user pinged is in the channel of origin (mostly useless, because you cant ping a user that is not in the channel where the message is comming from) 2025-02-26 12:21:02 +01:00
IRCBot differentiate formatting of messages between channels 2025-02-19 21:08:46 +01:00
.gitignore Working on IRC Bot 2024-02-12 23:42:27 +01:00
config.json fix broadcasting messag 2025-02-19 15:52:31 +01:00
Dockerfile add docker info in readme, add CMD to dockerfile 2025-02-03 14:56:47 +01:00
index.js remove unused dependencie 2025-02-18 22:29:56 +01:00
package.json remove unused dependencie 2025-02-18 22:29:56 +01:00
README.md readme 2025-02-19 21:40:03 +01: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:

docker 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é):

docker 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

pour déployer sur le vps, on utilise podman à la place de docker

il faut donc remplacer docker par podman pour build l'image

le lancement est chelou, pour l'instant on le fait en passant par un service systemd:

d'abord créer le container

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

puis créer le service:

generate systemd --name urlab_viaduk > /etc/systemd/system/urlab_viaduk.service
systemctl start urlab_viaduk

il faut potentiellement stop le service précédent et le reload une fois recréé

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