Pārlūkot izejas kodu

Adjust variable names to better reflect what they do

pull/2381/head
James Collier pirms 3 gadiem
vecāks
revīzija
afefe7fdef
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: CFC9885797777FFA
2 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. +2
    -2
      docs/configuring-playbook-bridge-mautrix-whatsapp.md
  2. +2
    -2
      roles/custom/matrix-bridge-mautrix-whatsapp/templates/config.yaml.j2

+ 2
- 2
docs/configuring-playbook-bridge-mautrix-whatsapp.md Parādīt failu

@@ -13,12 +13,12 @@ Whatsapp multidevice beta is required, now it is enough if Whatsapp is connected


The relay bot functionality is off by default. If you would like to enable the relay bot, add the following to your `vars.yml` file: The relay bot functionality is off by default. If you would like to enable the relay bot, add the following to your `vars.yml` file:
```yaml ```yaml
matrix_mautrix_whatsapp_relaybot_enabled: true
matrix_mautrix_whatsapp_bridge_relay_enabled: true
``` ```


By default, only admins are allowed to set themselves as relay users. To allow anyone on your homeserver to set themselves as relay users add this to your `vars.yml` file: By default, only admins are allowed to set themselves as relay users. To allow anyone on your homeserver to set themselves as relay users add this to your `vars.yml` file:
```yaml ```yaml
matrix_mautrix_whatsapp_relaybot_admin_only: false
matrix_mautrix_whatsapp_bridge_relay_admin_only: false
``` ```


If you want to activate the relay bot in a room, use `!whatsapp set-relay`. If you want to activate the relay bot in a room, use `!whatsapp set-relay`.


+ 2
- 2
roles/custom/matrix-bridge-mautrix-whatsapp/templates/config.yaml.j2 Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt