@zhin.js/adapter-icqq 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +60 -1
- package/client/ICQQManagement.vue +719 -0
- package/client/index.ts +12 -0
- package/lib/index.d.ts +31 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +199 -0
- package/lib/index.js.map +1 -0
- package/package.json +31 -9
- package/dist/index.d.ts +0 -30
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -124
- package/dist/index.js.map +0 -1
- package/src/index.ts +0 -127
- package/tsconfig.json +0 -25
- package/tsconfig.tsbuildinfo +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 凉菜
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1 +1,60 @@
|
|
|
1
|
-
# zhin
|
|
1
|
+
# @zhin.js/adapter-icqq
|
|
2
|
+
|
|
3
|
+
基于 ICQQ 的 Zhin 机器人适配器,用于连接 QQ 机器人。
|
|
4
|
+
|
|
5
|
+
## 功能特性
|
|
6
|
+
|
|
7
|
+
- 🤖 支持QQ群聊和私聊消息处理
|
|
8
|
+
- 🔐 完整的登录验证支持(短信验证、二维码、滑块验证)
|
|
9
|
+
- 📨 消息发送和接收处理
|
|
10
|
+
- 🔄 消息格式转换和适配
|
|
11
|
+
- 📁 自动数据目录管理
|
|
12
|
+
|
|
13
|
+
## 安装
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install @zhin.js/adapter-icqq @icqqjs/icqq
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## 配置
|
|
20
|
+
|
|
21
|
+
```javascript
|
|
22
|
+
// zhin.config.ts
|
|
23
|
+
export default {
|
|
24
|
+
bots: [
|
|
25
|
+
{
|
|
26
|
+
context: 'icqq',
|
|
27
|
+
name: '123456789', // QQ号
|
|
28
|
+
password: 'your-password', // QQ密码(可选)
|
|
29
|
+
scope: 'icqqjs', // 作用域
|
|
30
|
+
data_dir: './data', // 数据目录
|
|
31
|
+
// 其他ICQQ配置项...
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## 使用方式
|
|
38
|
+
|
|
39
|
+
适配器会自动处理登录流程:
|
|
40
|
+
- 支持密码登录、二维码登录
|
|
41
|
+
- 自动处理短信验证码输入
|
|
42
|
+
- 支持滑块验证
|
|
43
|
+
|
|
44
|
+
## 消息处理
|
|
45
|
+
|
|
46
|
+
- 自动将ICQQ消息格式转换为Zhin标准消息格式
|
|
47
|
+
- 支持群聊和私聊消息
|
|
48
|
+
- 提供消息回复功能
|
|
49
|
+
|
|
50
|
+
## 依赖项
|
|
51
|
+
|
|
52
|
+
- `@icqqjs/icqq` - ICQQ核心库
|
|
53
|
+
- `zhin.js` - Zhin核心框架
|
|
54
|
+
|
|
55
|
+
## 开发
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
npm run build # 构建
|
|
59
|
+
npm run clean # 清理构建文件
|
|
60
|
+
```
|