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:
Kim Brose 2023-02-13 13:29:19 +01:00 committed by GitHub
parent 80ccb0c877
commit 1b80bd8f40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

1
changelog.d/643.doc Normal file
View File

@ -0,0 +1 @@
Update docs and sample config for serviceBots. Thanks to @HarHarLinks.

View File

@ -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. 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
```

View File

@ -12,6 +12,8 @@ namespaces:
exclusive: true exclusive: true
- regex: "@_webhooks_.*:foobar" # Where _webhooks_ is set by userIdPrefix in config.yml - regex: "@_webhooks_.*:foobar" # Where _webhooks_ is set by userIdPrefix in config.yml
exclusive: true exclusive: true
- regex: "@feeds:foobar" # Matches the localpart of all serviceBots in config.yml
exclusive: true
aliases: aliases:
- regex: "#github_.+:foobar" # Where foobar is your homeserver's domain - regex: "#github_.+:foobar" # Where foobar is your homeserver's domain
exclusive: true exclusive: true