added facebook relay mode
This commit is contained in:
parent
c2aca02bd8
commit
89fb99ebb7
2 changed files with 26 additions and 1 deletions
|
@ -37,7 +37,8 @@
|
|||
become: yes
|
||||
become_user: mautrix-facebook
|
||||
pip:
|
||||
name: mautrix-facebook[animated_stickers]
|
||||
name: mautrix-facebook[all]
|
||||
state: latest
|
||||
virtualenv: /opt/mautrix-facebook
|
||||
virtualenv_command: virtualenv
|
||||
virtualenv_python: /usr/bin/python3
|
||||
|
|
|
@ -221,6 +221,7 @@ bridge:
|
|||
|
||||
# Permissions for using the bridge.
|
||||
# Permitted values:
|
||||
# relay - Allowed to be relayed through the bridge, no access to commands.
|
||||
# user - Use the bridge with puppeting.
|
||||
# admin - Use and administrate the bridge.
|
||||
# Permitted keys:
|
||||
|
@ -228,6 +229,7 @@ bridge:
|
|||
# domain - All users on that homeserver
|
||||
# mxid - Specific user
|
||||
permissions:
|
||||
"*": "relay"
|
||||
{{ matrix_server_name }}: user
|
||||
{% for user in matrix_bridge_facebook_allowed_external_user %}
|
||||
'{{ user }}': user
|
||||
|
@ -235,6 +237,28 @@ bridge:
|
|||
{% for admin in matrix_bridge_facebook_admins %}
|
||||
'@{{ admin }}:{{ matrix_server_name }}': admin
|
||||
{% endfor %}
|
||||
|
||||
relay:
|
||||
# Whether relay mode should be allowed. If allowed, `!fb set-relay` can be used to turn any
|
||||
# authenticated user into a relaybot for that chat.
|
||||
enabled: true
|
||||
# The formats to use when sending messages to Messenger via a relay user.
|
||||
#
|
||||
# Available variables:
|
||||
# $sender_displayname - The display name of the sender (e.g. Example User)
|
||||
# $sender_username - The username (Matrix ID localpart) of the sender (e.g. exampleuser)
|
||||
# $sender_mxid - The Matrix ID of the sender (e.g. @exampleuser:example.com)
|
||||
# $message - The message content
|
||||
message_formats:
|
||||
m.text: '<b>$sender_displayname</b>: $message'
|
||||
m.notice: '<b>$sender_displayname<b>: $message'
|
||||
m.emote: '* <b>$sender_displayname<b> $message'
|
||||
m.file: '<b>$sender_displayname</b> sent a file'
|
||||
m.image: '<b>$sender_displayname</b> sent an image'
|
||||
m.audio: '<b>$sender_displayname</b> sent an audio file'
|
||||
m.video: '<b>$sender_displayname</b> sent a video'
|
||||
m.location: '<b>$sender_displayname</b> sent a location'
|
||||
|
||||
logging:
|
||||
version: 1
|
||||
formatters:
|
||||
|
|
Loading…
Reference in a new issue