|
1 | 1 | # Connect to KOOK |
2 | 2 |
|
3 | | -> [!TIP] |
4 | | -> AstrBot does not include this adapter by default. Install [astrbot_plugin_kook_adapter](https://github.com/wuyan1003/astrbot_plugin_kook_adapter), developed by [wuyan1003](https://github.com/wuyan1003). |
5 | | -
|
6 | | -## Install `astrbot_plugin_kook_adapter` |
7 | | - |
8 | | -In AstrBot Dashboard Plugin Market, search for `astrbot_plugin_kook_adapter` and install it. |
9 | | - |
10 | | - |
11 | | - |
12 | | -After installation, go to `Messaging Platforms` -> `Add Adapter` -> `KOOK`. |
13 | | -If KOOK is missing, restart AstrBot or verify plugin installation. |
14 | | - |
15 | | -Enable the adapter in the configuration dialog. |
16 | | - |
17 | | -## Create a Bot in KOOK |
18 | | - |
19 | | -1. Open [KOOK Developer Platform](https://developer.kookapp.cn/app). |
20 | | -2. Sign in and complete identity verification. |
21 | | -3. Create an application and set bot nickname. |
22 | | -4. In the app console, open `Bot` settings and enable **WebSocket connection mode**. |
23 | | -5. Copy the generated **Token** and fill it into the AstrBot adapter. |
| 3 | +1. Go to `Messaging Platforms` → `Add Adapter` → Select `KOOK`. |
| 4 | +2. Click the link to open the [KOOK Developer Platform](https://developer.kookapp.cn/app) and complete the following steps: |
| 5 | + 1. Sign in and complete identity verification. |
| 6 | + 2. Click **New Application** and set a bot nickname. |
| 7 | + 3. In the app console, go to the **Bot** module and enable **WebSocket connection mode**. |
| 8 | + 4. Copy the generated **Token**, paste it into the corresponding field in the AstrBot adapter, and click `Enable`. |
24 | 9 |
|
25 | 10 |  |
26 | 11 |
|
27 | | -6. Click `Save` in AstrBot to create the adapter. |
28 | | -7. In AstrBot `Bots` page, use invite link and set role permissions (full permissions recommended). |
29 | | -8. Use the invite link to add the bot to your target server. |
30 | | -9. In a channel, mention the bot and send `/help` to verify. |
31 | | - |
32 | | -## Issue Reporting |
33 | | - |
34 | | -If needed, report issues to: |
35 | | - |
36 | | -- Plugin repo: <https://github.com/wuyan1003/astrbot_plugin_kook_adapter/issues> |
37 | | -- AstrBot repo: <https://github.com/AstrBotDevs/AstrBot/issues/new?template=bug-report.yml> |
| 12 | +3. Click `Save` in the bottom-right corner to create the adapter. |
| 13 | +4. In AstrBot `Messaging Platforms` page, click **Invite Link**, set role permissions (full permissions recommended to ensure complete functionality). |
| 14 | +5. After setting permissions, copy the invite link and open it to add the bot to your target server. |
| 15 | +6. In a server channel, mention the bot and send `/sid`. If it replies successfully, the setup is complete. |
0 commit comments