|
1 | 1 | # Connect to KOOK |
2 | 2 |
|
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`. |
9 | | - |
10 | | - |
11 | | - |
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. |
| 3 | +## Supported Message Types |
| 4 | + |
| 5 | +> Version v4.19.2 |
| 6 | +
|
| 7 | +| Message Type | Receive | Send | Remarks | |
| 8 | +| ------------ | ------- | ---- | -------------------------------------------------- | |
| 9 | +| Text | Yes | Yes | Supports official [kmarkdown] syntax | |
| 10 | +| Image | Yes | Yes | Supports external links; `jpeg`, `gif`, `png` only | |
| 11 | +| Audio | Yes | Yes | Supports external links | |
| 12 | +| Video | Yes | Yes | Supports external links; `mp4`, `mov` only | |
| 13 | +| File | Yes | Yes | Supports external links | |
| 14 | +| Card (JSON) | Yes | Yes | See [Kook Docs - Card Messages] | |
| 15 | + |
| 16 | +Proactive message push: Supported |
| 17 | +Message receiving mode: WebSocket |
| 18 | + |
| 19 | +## Create a Bot on Kook |
| 20 | + |
| 21 | +1. Go to the [Kook Developer Center] and follow these steps: |
| 22 | +2. Log in and complete identity verification. |
| 23 | +3. Click "Create Application" and customize your Bot's nickname. |
| 24 | +4. Enter the application dashboard, select the **Bot** module, and enable **WebSocket connection mode**. Make sure to save the generated **Token**, as you will need it for the subsequent AstrBot configuration. |
| 25 | +5. Under the "Bot" page in the left sidebar, click "Invite Link" and set the role permissions (full permissions are recommended to ensure all features work). |
| 26 | +6. Copy the invite link, open it in your browser, and add the bot to your desired server. |
| 27 | + |
| 28 | +  |
| 29 | + |
| 30 | +## Configure in AstrBot |
| 31 | + |
| 32 | +1. Access the AstrBot management panel. |
| 33 | +2. Click **Bots** in the left sidebar. |
| 34 | +3. Click `+ Create Bot` on the right side of the interface. |
| 35 | +4. Select the `kook` adapter. |
| 36 | +5. Fill in the configuration fields: |
| 37 | + - ID (id): Any name to identify this specific instance. |
| 38 | + - Enable (enable): Check the box. |
| 39 | + - Bot Token: Paste the Token generated from the [Kook Developer Center]. |
| 40 | + |
| 41 | +6. Click `Save` after filling in the details. |
| 42 | +7. Finally, in a Kook server channel (create one first if you haven't), @ the bot and type `/sid`. If the bot responds, the configuration is successful. |
| 43 | + |
| 44 | +[Kook Developer Center]: https://developer.kookapp.cn/app |
| 45 | +[kmarkdown]: https://developer.kookapp.cn/doc/kmarkdown |
| 46 | +[Kook Docs - Card Messages]: https://developer.kookapp.cn/doc/cardmessage |
0 commit comments