bundlewrap/bundles/mx-puppet-discord/files/config.yaml

36 lines
1.1 KiB
YAML
Raw Normal View History

2020-04-04 15:54:48 +00:00
bridge:
port: ${node.metadata['mx-puppet-discord'].get('port', 20000)}
bindAddress: ${node.metadata['mx-puppet-discord'].get('listen-addr', '127.0.0.1')}
2020-04-04 15:54:48 +00:00
domain: ${node.metadata['mx-puppet-discord']['homeserver']['domain']}
homeserverUrl: ${node.metadata['mx-puppet-discord']['homeserver']['url']}
enableGroupSync: true
2020-04-04 15:54:48 +00:00
presence:
enabled: true
interval: 500
disableStatusState: true
2020-04-04 15:54:48 +00:00
provisioning:
whitelist:
% for regex in node.metadata['mx-puppet-discord']['allowed-users']:
- "${regex}"
% endfor
namePatterns:
user: ":name (Discord)"
userOverride: ":displayname (Discord)"
room: "#:name (Discord - :guild)"
group: ":name"
2020-04-04 15:54:48 +00:00
database:
connString: "postgres://${node.metadata['mx-puppet-discord']['database']['user']}:${node.metadata['mx-puppet-discord']['database']['password']}@${node.metadata['mx-puppet-discord']['database'].get('host', 'localhost')}/${node.metadata['mx-puppet-discord']['database']['database']}?sslmode=disable"
logging:
console:
level: info
disabled:
- PresenceHandler
- module: bot-sdk-MatrixLiteClient
regex: /_matrix/client/r0/presence/
2020-04-04 15:54:48 +00:00
lineDateFormat: YYYY-MM-DD HH:mm:ss.SSS