mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-30 04:15:45 +08:00
* 重构文档结构:移除 docs 目录,调整文件组织结构 * Reorder "插件 SDK API" section in docs.json * Refactor and clarify various documentation sections * Refine warnings and info boxes across multiple docs * Refactor and simplify Japanese documentation content * Update package.json to include mintlify as a dependency and add pnpm-lock.yaml for dependency management * Update blog link and add description in docs.json --------- Co-authored-by: Junyan Chin <[email protected]>
66 lines
2.1 KiB
Plaintext
66 lines
2.1 KiB
Plaintext
---
|
|
title: "接入 KOOK 机器人"
|
|
---
|
|
|
|
## 创建机器人
|
|
|
|
前往 [KOOK 开发者中心](https://developer.kookapp.cn/),登录后进入控制台。
|
|
|
|

|
|
|
|
点击「新建应用」,填写应用信息。
|
|
|
|

|
|
|
|
应用创建完成后,进入应用详情页。
|
|
|
|

|
|
|
|
在应用概览页面可以查看应用的基本信息。
|
|
|
|

|
|
|
|
## 获取 Bot Token
|
|
|
|
在应用页面中,点击「机器人」标签,复制 Bot Token 并妥善保存,后续需要使用。
|
|
|
|

|
|
|
|
## 配置机器人权限
|
|
|
|
**重要:** 在「机器人」设置中,找到「消息过滤」选项,点击配置。
|
|
|
|

|
|
|
|
开启所有消息相关事件权限,包括频道消息和私聊消息事件,否则机器人将无法接收消息。
|
|
|
|

|
|
|
|
## 邀请机器人
|
|
|
|
在机器人设置页面,可以生成邀请链接,将机器人邀请到你的服务器。
|
|
|
|

|
|
|
|
## 对接 LangBot
|
|
|
|
打开 LangBot Webui 页面,在「机器人」页面点击创建新机器人。
|
|
|
|

|
|
|
|
选择 KOOK 平台,填写机器人名称和 Bot Token。
|
|
|
|

|
|
|
|
保存后,机器人将出现在列表中。
|
|
|
|

|
|
|
|
点击启用按钮,启动机器人。若成功配置,机器人状态将显示为运行中。
|
|
|
|

|
|
|
|
## 使用机器人
|
|
|
|
现在在 KOOK 服务器中,机器人就可以正常接收和回复消息了。机器人支持频道消息和私聊消息。
|