Przeglądaj źródła

Expose additional settings to vars config template for appservice-discord

pull/835/head
SkepticalWaves 5 lat temu
rodzic
commit
29de9f33d8
2 zmienionych plików z 10 dodań i 5 usunięć
  1. +5
    -0
      roles/matrix-bridge-appservice-discord/defaults/main.yml
  2. +5
    -5
      roles/matrix-bridge-appservice-discord/templates/config.yaml.j2

+ 5
- 0
roles/matrix-bridge-appservice-discord/defaults/main.yml Wyświetl plik

@@ -40,6 +40,11 @@ matrix_appservice_discord_bridge_domain: "{{ matrix_domain }}"
matrix_appservice_discord_bridge_homeserverUrl: "{{ matrix_homeserver_url }}" matrix_appservice_discord_bridge_homeserverUrl: "{{ matrix_homeserver_url }}"
matrix_appservice_discord_bridge_disablePresence: false matrix_appservice_discord_bridge_disablePresence: false
matrix_appservice_discord_bridge_enableSelfServiceBridging: false matrix_appservice_discord_bridge_enableSelfServiceBridging: false
matrix_appservice_discord_bridge_disableTypingNotifications: false
matrix_appservice_discord_bridge_disableDeletionForwarding: false
matrix_appservice_discord_bridge_disableReadReceipts: false
matrix_appservice_discord_bridge_disableJoinLeaveNotifications: false
matrix_appservice_discord_bridge_disableInviteNotifications: false


# Database-related configuration fields. # Database-related configuration fields.
# #


+ 5
- 5
roles/matrix-bridge-appservice-discord/templates/config.yaml.j2 Wyświetl plik

@@ -15,19 +15,19 @@ bridge:
# will not be shown as away or online. # will not be shown as away or online.
disablePresence: {{ matrix_appservice_discord_bridge_disablePresence|to_json }} disablePresence: {{ matrix_appservice_discord_bridge_disablePresence|to_json }}
# Disable sending typing notifications when somebody on Discord types. # Disable sending typing notifications when somebody on Discord types.
disableTypingNotifications: false
disableTypingNotifications: {{ matrix_appservice_discord_bridge_disableTypingNotifications|to_json }}
# Disable deleting messages on Discord if a message is redacted on Matrix. # Disable deleting messages on Discord if a message is redacted on Matrix.
disableDeletionForwarding: false
disableDeletionForwarding: {{ matrix_appservice_discord_bridge_disableDeletionForwarding|to_json }}
# Enable users to bridge rooms using !discord commands. See # Enable users to bridge rooms using !discord commands. See
# https://t2bot.io/discord for instructions. # https://t2bot.io/discord for instructions.
enableSelfServiceBridging: {{ matrix_appservice_discord_bridge_enableSelfServiceBridging|to_json }} enableSelfServiceBridging: {{ matrix_appservice_discord_bridge_enableSelfServiceBridging|to_json }}
# Disable sending of read receipts for Matrix events which have been # Disable sending of read receipts for Matrix events which have been
# successfully bridged to Discord. # successfully bridged to Discord.
disableReadReceipts: false
disableReadReceipts: {{ matrix_appservice_discord_bridge_disableReadReceipts|to_json }}
# Disable Join Leave echos from matrix # Disable Join Leave echos from matrix
disableJoinLeaveNotifications: false
disableJoinLeaveNotifications: {{ matrix_appservice_discord_bridge_disableJoinLeaveNotifications|to_json }}
# Disable Invite echos from matrix # Disable Invite echos from matrix
disableInviteNotifications: false
disableInviteNotifications: {{ matrix_appservice_discord_bridge_disableInviteNotifications|to_json }}
# Auto-determine the language of code blocks (this can be CPU-intensive) # Auto-determine the language of code blocks (this can be CPU-intensive)
determineCodeLanguage: false determineCodeLanguage: false
# Authentication configuration for the discord bot. # Authentication configuration for the discord bot.


Ładowanie…
Anuluj
Zapisz