Add support for disabling presence on matrix-bridge-mx-puppet-discord

This commit is contained in:
Slavi Pantaleev 2024-01-08 17:06:38 +02:00
parent 6d0ecb0269
commit 82de4581e3
3 changed files with 7 additions and 2 deletions

View File

@ -1883,6 +1883,8 @@ matrix_mx_puppet_discord_homeserver_token: "{{ '%s' | format(matrix_homeserver_g
matrix_mx_puppet_discord_login_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret if matrix_synapse_ext_password_provider_shared_secret_auth_enabled else '' }}"
matrix_mx_puppet_discord_presence_enabled: "{{ matrix_homeserver_implementation != 'synapse' or matrix_synapse_presence_enabled }}"
# Postgres is the default, except if not using internal Postgres server
matrix_mx_puppet_discord_database_engine: "{{ 'postgres' if devture_postgres_enabled else 'sqlite' }}"
matrix_mx_puppet_discord_database_hostname: "{{ devture_postgres_connection_hostname if devture_postgres_enabled else '' }}"

View File

@ -68,6 +68,9 @@ matrix_mx_puppet_discord_homeserver_token: ''
# Can be set to enable automatic double-puppeting via Shared Secret Auth (https://github.com/devture/matrix-synapse-shared-secret-auth).
matrix_mx_puppet_discord_login_shared_secret: ''
matrix_mx_puppet_discord_presence_enabled: true
matrix_mx_puppet_discord_presence_interval: 5000
# Database configuration
matrix_mx_puppet_discord_database_engine: 'sqlite'

View File

@ -23,9 +23,9 @@ bridge:
presence:
# Bridge Discord online/offline status
enabled: true
enabled: {{ matrix_mx_puppet_discord_presence_enabled | to_json }}
# How often to send status to the homeserver in milliseconds
interval: 5000
interval: {{ matrix_mx_puppet_discord_presence_interval | to_json }}
provisioning:
# Regex of Matrix IDs allowed to use the puppet bridge