mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 05:17:07 +00:00
Register namespace for sample serviceBot in registration.sample.yml (#643)
* Update service_bots.md * Update registration.sample.yml * Create 643.doc
This commit is contained in:
parent
80ccb0c877
commit
1b80bd8f40
1
changelog.d/643.doc
Normal file
1
changelog.d/643.doc
Normal file
@ -0,0 +1 @@
|
||||
Update docs and sample config for serviceBots. Thanks to @HarHarLinks.
|
@ -26,3 +26,11 @@ serviceBots:
|
||||
```
|
||||
|
||||
There will be a bot user `@feeds:example.com` which responds to commands prefixed with `!feeds`, and only handles feeds connections.
|
||||
|
||||
For the homeserver to allow hookshot control over users, they need to be added to the list of user namespaces in the `registration.yml` file provided to the homeserver.
|
||||
|
||||
In the example above, you would need to add these lines:
|
||||
```yaml
|
||||
- regex: "@feeds:example.com" # Where example.com is your homeserver's domain
|
||||
exclusive: true
|
||||
```
|
||||
|
@ -12,6 +12,8 @@ namespaces:
|
||||
exclusive: true
|
||||
- regex: "@_webhooks_.*:foobar" # Where _webhooks_ is set by userIdPrefix in config.yml
|
||||
exclusive: true
|
||||
- regex: "@feeds:foobar" # Matches the localpart of all serviceBots in config.yml
|
||||
exclusive: true
|
||||
aliases:
|
||||
- regex: "#github_.+:foobar" # Where foobar is your homeserver's domain
|
||||
exclusive: true
|
||||
@ -23,4 +25,4 @@ rate_limited: false
|
||||
# If enabling encryption
|
||||
de.sorunome.msc2409.push_ephemeral: true
|
||||
push_ephemeral: true
|
||||
org.matrix.msc3202: true
|
||||
org.matrix.msc3202: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user