From d33f1894166bec17077795f971719c902fcb9cf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Mon, 11 Mar 2024 13:18:35 +0100 Subject: [PATCH] config: AutoWebhooks disables WebhookURL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Requries "Manage Webhooks" permission for bot account. Signed-off-by: Jakub SokoĊ‚owski --- templates/matterbridge.yaml.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/matterbridge.yaml.j2 b/templates/matterbridge.yaml.j2 index 1a988bf..b77cb59 100644 --- a/templates/matterbridge.yaml.j2 +++ b/templates/matterbridge.yaml.j2 @@ -58,8 +58,10 @@ gateway: - account: "discord.{{ discord_srv.srv }}" channel: "{{ discord_srv.ch }}" + {% if not matterbridge_bridges['discord'][discord_srv.srv].get('AutoWebhooks', False) %} options: WebhookURL: "{{lookup("bitwarden", "Discord/"+discord_srv.srv+"/webhooks", field=discord_srv.ch)}}" + {% endif %} {% endfor %} {% endfor %}