feat: bridge #dgnum over Merle

This commit is contained in:
Raito Bezarius 2022-10-01 22:49:56 +02:00
parent 893339ba0b
commit 124ec3ab73
3 changed files with 19 additions and 4 deletions

View file

@ -28,7 +28,7 @@ let
startScript = pkgs.writeShellScriptBin "start" ''
${manageSecrets
./matterbridge.toml "$CREDENTIALS_DIRECTORY/secrets" "$RUNTIME_DIRECTORY/conf.toml"
[ "SECRET_MATTERMOST_WEBHOOK" ]}/bin/preStart
[ "SECRET_MATTERMOST_KLUBRZ_WEBHOOK" "SECRET_MATTERMOST_DGNUM_WEBHOOK" ]}/bin/preStart
${pkgs.matterbridge}/bin/matterbridge -conf $RUNTIME_DIRECTORY/conf.toml
'';
in {

View file

@ -7,11 +7,16 @@
PrefixMessagesWithNick=true
RemoteNickFormat="<{NICK}> "
[mattermost]
[mattermost.merle]
WebhookURL="SECRET_MATTERMOST_WEBHOOK"
[mattermost.merle_klubrz]
WebhookURL="SECRET_MATTERMOST_KLUBRZ_WEBHOOK"
WebhookBindAddress="0.0.0.0:52187"
PrefixMessagesWithNick=false
RemoteNickFormat="{NICK}"
[mattermost.merle_klubrz]
WebhookURL="SECRET_MATTERMOST_DGNUM_WEBHOOK"
WebhookBindAddress="0.0.0.0:52188"
PrefixMessagesWithNick=false
RemoteNickFormat="{NICK}"
[[gateway]]
name="réseau"
enable=true
@ -19,5 +24,15 @@ enable=true
account="irc.ulminfo"
channel="#réseau"
[[gateway.inout]]
account="mattermost.merle"
account="mattermost.merle_klubrz"
channel="town-square"
[[gateway]]
name="dgnum"
enable=true
[[gateway.inout]]
account="irc.ulminfo"
channel="#dgnum"
[[gateway.inout]]
channel="mattermost.merle_dgnum"
channel="town-square"