소스 검색

Allow the mautrix whatsapp relaybot to be enable with a variable

This allows a user to enable the relaybot by setting a variable in
`vars.yml` in the same way that the mautrix signal relaybot is
configured.
pull/2381/head
James Collier 3 년 전
부모
커밋
18ed7aba84
No known key found for this signature in database GPG 키 ID: CFC9885797777FFA
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      roles/custom/matrix-bridge-mautrix-whatsapp/templates/config.yaml.j2

+ 2
- 2
roles/custom/matrix-bridge-mautrix-whatsapp/templates/config.yaml.j2 파일 보기

@@ -396,9 +396,9 @@ bridge:
relay:
# Whether relay mode should be allowed. If allowed, `!wa set-relay` can be used to turn any
# authenticated user into a relaybot for that chat.
enabled: false
enabled: {{ matrix_mautrix_whatsapp_relaybot_enabled }}
# Should only admins be allowed to set themselves as relay users?
admin_only: true
admin_only: {{ matrix_mautrix_whatsapp_relaybot_admin_only }}
# The formats to use when sending messages to WhatsApp via the relaybot.
message_formats:
m.text: "<b>{{ '{{ .Sender.Displayname }}' }}</b>: {{ '{{ .Message }}' }}"


불러오는 중...
취소
저장