You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add "To use the bot" if it does not exist: adopt the format of the docs for bridges
- Add "Prerequisites" section if an API key or user account is required
- Use the common instruction for getting an access token
- Replace "Get" with "Obtain" about getting keys or access tokens
- Replace placeholders for access tokens on docs/configuring-playbook-bot-go.neb.md
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
The bot requires an access token to be able to connect to your homeserver. Refer to the documentation on [how to obtain an access token](obtaining-access-tokens.md).
28
28
@@ -36,15 +36,14 @@ Then, log in as the bot using any Matrix client of your choosing, accept the roo
36
36
37
37
## Adjusting the playbook configuration
38
38
39
-
Add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file. Make sure to replace `ACCESS_TOKEN_HERE` with the one created [above](#get-an-access-token).
39
+
Add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file. Make sure to replace `ACCESS_TOKEN_HERE` with the one created [above](#obtain-an-access-token).
40
40
41
41
```yaml
42
42
matrix_alertmanager_receiver_enabled: true
43
43
44
44
# Uncomment and adjust this part if you'd like to use a username different than the default
### Obtain an access token and create encryption keys
24
28
25
-
Refer to the documentation on [how to obtain an access token](obtaining-access-tokens.md).
29
+
The bot requires an access token to be able to connect to your homeserver. Refer to the documentation on [how to obtain an access token](obtaining-access-tokens.md).
26
30
27
31
To make sure the bot can read encrypted messages, it will need an encryption key, just like any other new user. While obtaining the access token, follow the prompts to setup a backup key. More information can be found in the [Element documentation](https://element.io/help#encryption6).
28
32
29
33
## Adjusting the playbook configuration
30
34
31
-
Add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file (adapt to your needs):
35
+
To enable the bot, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file. Make sure to replace `API_KEY_HERE` with the API key retrieved [here](#obtain-an-openai-api-key) and `ACCESS_TOKEN_HERE` with the access token created [here](#obtain-an-access-token-and-create-encryption-keys), respectively.
32
36
33
37
```yaml
34
38
matrix_bot_chatgpt_enabled: true
35
39
36
-
# Obtain a new API key from https://platform.openai.com/account/api-keys
37
-
matrix_bot_chatgpt_openai_api_key: ''
40
+
matrix_bot_chatgpt_openai_api_key: 'API_KEY_HERE'
38
41
39
-
#This is the default username
42
+
#Uncomment and adjust this part if you'd like to use a username different than the default
If you would like Draupnir to be able to deactivate users, move aliases, shutdown rooms, show abuse reports (see [below](#abuse-reports)), etc then it must be a server admin so you need to change `admin=no` to `admin=yes` in the command above.
26
26
27
-
### Get an access token
27
+
### Obtain an access token
28
28
29
29
The bot requires an access token to be able to connect to your homeserver. Refer to the documentation on [how to obtain an access token](obtaining-access-tokens.md).
30
30
@@ -64,7 +64,7 @@ Finally invite the `@bot.draupnir:example.com` account you created earlier into
64
64
65
65
## Adjusting the playbook configuration
66
66
67
-
Add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file. Make sure to replace `MANAGEMENT_ROOM_ID_HERE`.
67
+
To enable the bot, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file. Make sure to replace `MANAGEMENT_ROOM_ID_HERE`.
When NOT using Pantalaimon, Draupnir does not log in by itself and you must give it an access token for its bot account.
115
115
116
-
Add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file. Make sure to replace `ACCESS_TOKEN_HERE` with the one created [above](#get-an-access-token).
116
+
Add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file. Make sure to replace `ACCESS_TOKEN_HERE` with the one created [above](#obtain-an-access-token).
Once the user is created you can [obtain an access token](obtaining-access-tokens.md).
25
+
### Obtain an access token
26
+
27
+
The bot requires an access token to be able to connect to your homeserver. Refer to the documentation on [how to obtain an access token](obtaining-access-tokens.md).
26
28
27
29
## Adjusting the playbook configuration
28
30
29
-
To enable Go-NEB, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file:
31
+
To enable the bot, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file. Make sure to replace `ACCESS_TOKEN_FOR_GONEB_HERE` and `ACCESS_TOKEN_FOR_ANOTHER_GONEB_HERE` with the ones created [above](#obtain-an-access-token).
30
32
31
33
```yaml
32
34
matrix_bot_go_neb_enabled: true
@@ -35,7 +37,7 @@ matrix_bot_go_neb_enabled: true
35
37
# Use the access token you obtained in the step above.
Copy file name to clipboardExpand all lines: docs/configuring-playbook-bot-matrix-registration-bot.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ The bot allows you to easily **create and manage registration tokens** aka. invi
6
6
7
7
See the project's [documentation](https://github.com/moan0s/matrix-registration-bot/blob/master/README.md) to learn what it does and why it might be useful to you.
8
8
9
-
## Configuration
9
+
## Adjusting the playbook configuration
10
10
11
11
To enable the bot, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file:
Copy file name to clipboardExpand all lines: docs/configuring-playbook-bot-maubot.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ See the project's [documentation](https://docs.mau.fi/maubot/usage/basic.html) t
8
8
9
9
## Adjusting the playbook configuration
10
10
11
-
To enable maubot, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file:
11
+
To enable the bot, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file:
12
12
13
13
```yaml
14
14
matrix_bot_maubot_enabled: true
@@ -75,7 +75,7 @@ You should start in the following order
75
75
2. **Upload some Plugins**: Plugins can be obtained from [here](https://github.com/maubot/maubot#plugins) or any other source.
76
76
3. **Create an instance**: An instance is the actual bot. You have to specify a client which the bot instance will use and the plugin (how the bot will behave)
77
77
78
-
## Obtaining an access token
78
+
## Obtain an access token
79
79
80
80
This can be done via `mbc login` then `mbc auth` (see the [maubot documentation](https://docs.mau.fi/maubot/usage/cli/auth.html)). To run these commands, you'll first need to `exec` into the maubot container with `docker exec -it matrix-bot-maubot sh`.
0 commit comments