Sync appservice-discord configuration with upstream

This commit is contained in:
Slavi Pantaleev 2022-11-03 11:50:34 +02:00
parent 995ef460e7
commit 4cbea602dd

View File

@ -18,6 +18,9 @@ bridge:
disableTypingNotifications: false disableTypingNotifications: false
# 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: false
# Disable portal bridging, where Matrix users can search for unbridged Discord
# rooms on their Matrix server.
disablePortalBridging: {{ matrix_appservice_discord_bridge_disablePortalBridging|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 }}
@ -28,10 +31,14 @@ bridge:
disableJoinLeaveNotifications: false disableJoinLeaveNotifications: false
# Disable Invite echos from matrix # Disable Invite echos from matrix
disableInviteNotifications: false disableInviteNotifications: false
# Disable portal briding (automatic room creation) # Disable Room Topic echos from matrix
disablePortalBridging: {{ matrix_appservice_discord_bridge_disablePortalBridging|to_json }} disableRoomTopicNotifications: false
# 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
# MXID of an admin user that will be PMd if the bridge experiences problems. Optional
adminMxid: {{ matrix_admin | to_json }}
# The message to send to the bridge admin if the Discord token is not valid
invalidTokenMessage: 'Your Discord bot token seems to be invalid, and the bridge cannot function. Please update it in your bridge settings and restart the bridge'
# Authentication configuration for the discord bot. # Authentication configuration for the discord bot.
auth: auth:
clientID: {{ matrix_appservice_discord_client_id | string|to_json }} clientID: {{ matrix_appservice_discord_client_id | string|to_json }}
@ -85,7 +92,7 @@ channel:
unsetRoomAlias: true unsetRoomAlias: true
# Remove the room from the directory. # Remove the room from the directory.
unlistFromDirectory: true unlistFromDirectory: true
# Set the room to be unavaliable for joining without an invite. # Set the room to be unavailable for joining without an invite.
setInviteOnly: true setInviteOnly: true
# Make all the discord users leave the room. # Make all the discord users leave the room.
ghostsLeave: true ghostsLeave: true
@ -98,8 +105,15 @@ limits:
# echos = (Copies of a sent message may arrive from discord before we've # echos = (Copies of a sent message may arrive from discord before we've
# fininished handling it, causing us to echo it back to the room) # fininished handling it, causing us to echo it back to the room)
discordSendDelay: 1500 discordSendDelay: 1500
# Set a maximum of rooms to be bridged.
# roomCount: 20
ghosts: ghosts:
# Pattern for the ghosts nick, available is :nick, :username, :tag and :id # Pattern for the ghosts nick, available is :nick, :username, :tag and :id
nickPattern: ":nick" nickPattern: ":nick"
# Pattern for the ghosts username, available is :username, :tag and :id # Pattern for the ghosts username, available is :username, :tag and :id
usernamePattern: ":username#:tag" usernamePattern: ":username#:tag"
# Prometheus-compatible metrics endpoint
metrics:
enable: false
port: 9001
host: "127.0.0.1"