@zhin.js/adapter-icqq 2.0.5 → 2.0.7
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/CHANGELOG.md +18 -0
- package/lib/adapter.d.ts +7 -2
- package/lib/adapter.d.ts.map +1 -1
- package/lib/adapter.js +78 -33
- package/lib/adapter.js.map +1 -1
- package/lib/bot.d.ts +29 -29
- package/lib/bot.d.ts.map +1 -1
- package/lib/bot.js +226 -405
- package/lib/bot.js.map +1 -1
- package/lib/commands/index.d.ts +7 -0
- package/lib/commands/index.d.ts.map +1 -0
- package/lib/commands/index.js +30 -0
- package/lib/commands/index.js.map +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +13 -297
- package/lib/index.js.map +1 -1
- package/lib/ipc-client.d.ts +60 -0
- package/lib/ipc-client.d.ts.map +1 -0
- package/lib/ipc-client.js +272 -0
- package/lib/ipc-client.js.map +1 -0
- package/lib/protocol.d.ts +174 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +162 -0
- package/lib/protocol.js.map +1 -0
- package/lib/routes.d.ts +8 -0
- package/lib/routes.d.ts.map +1 -0
- package/lib/routes.js +67 -0
- package/lib/routes.js.map +1 -0
- package/lib/tools/index.d.ts +10 -0
- package/lib/tools/index.d.ts.map +1 -0
- package/lib/tools/index.js +336 -0
- package/lib/tools/index.js.map +1 -0
- package/lib/types.d.ts +45 -7
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +5 -0
- package/lib/types.js.map +1 -1
- package/package.json +11 -12
- package/plugin.yml +3 -0
- package/skills/icqq/SKILL.md +31 -64
- package/skills/icqq/references/friends.md +54 -0
- package/skills/icqq/references/general.md +145 -0
- package/skills/icqq/references/gfs.md +49 -0
- package/skills/icqq/references/groups.md +71 -0
- package/skills/icqq/references/messaging.md +66 -0
- package/skills/icqq/references/requests.md +27 -0
- package/skills/icqq/references/settings.md +38 -0
- package/src/adapter.ts +73 -35
- package/src/bot.ts +272 -443
- package/src/commands/index.ts +32 -0
- package/src/index.ts +14 -305
- package/src/ipc-client.ts +326 -0
- package/src/protocol.ts +242 -0
- package/src/routes.ts +83 -0
- package/src/tools/index.ts +407 -0
- package/src/types.ts +47 -7
package/skills/icqq/SKILL.md
CHANGED
|
@@ -1,74 +1,41 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: icqq
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
keywords:
|
|
7
|
-
- ICQQ
|
|
8
|
-
- QQ
|
|
9
|
-
- adapter:icqq
|
|
10
|
-
- 群管理
|
|
11
|
-
- 踢人
|
|
12
|
-
- 禁言
|
|
13
|
-
- 管理员
|
|
14
|
-
- 头衔
|
|
15
|
-
- 群公告
|
|
16
|
-
- 戳一戳
|
|
17
|
-
- list_members
|
|
18
|
-
tags:
|
|
19
|
-
- group
|
|
20
|
-
- management
|
|
21
|
-
- im
|
|
22
|
-
tools:
|
|
23
|
-
# 平台特有工具
|
|
24
|
-
- icqq_set_title
|
|
25
|
-
- icqq_announce
|
|
26
|
-
- icqq_poke
|
|
27
|
-
- icqq_list_muted
|
|
28
|
-
- icqq_send_user_like
|
|
29
|
-
- icqq_set_anonymous
|
|
30
|
-
- icqq_group_files
|
|
31
|
-
- icqq_friend_list
|
|
32
|
-
# 通用群管工具
|
|
33
|
-
- icqq_kick_member
|
|
34
|
-
- icqq_mute_member
|
|
35
|
-
- icqq_mute_all
|
|
36
|
-
- icqq_set_admin
|
|
37
|
-
- icqq_set_nickname
|
|
38
|
-
- icqq_set_group_name
|
|
39
|
-
- icqq_list_members
|
|
3
|
+
description: 'Operate QQ account via icqq CLI. Use when asked to: send QQ message, manage QQ groups, check QQ friends, poke friend, like friend, mute member, kick member, set nickname, view QQ profile, handle friend/group requests, manage group files, set group announcement, QQ签到, 发消息, 管群, 好友操作, 群文件.'
|
|
4
|
+
argument-hint: 'Describe what QQ operation to perform, e.g. "send hello to friend 12345" or "mute user 67890 in group 11111"'
|
|
5
|
+
disable-model-invocation: true
|
|
40
6
|
---
|
|
41
7
|
|
|
42
|
-
|
|
8
|
+
# icqq — QQ Account Operations via CLI
|
|
43
9
|
|
|
44
|
-
|
|
10
|
+
Operate a QQ account through the `icqq` command-line tool. The daemon must be running first (`icqq login`).
|
|
45
11
|
|
|
46
|
-
|
|
47
|
-
|------|------|------|
|
|
48
|
-
| `icqq_set_title` | 设置群头衔 | group_admin |
|
|
49
|
-
| `icqq_announce` | 发送群公告 | group_admin |
|
|
50
|
-
| `icqq_poke` | 戳一戳互动 | user |
|
|
51
|
-
| `icqq_list_muted` | 查询禁言列表 | user |
|
|
52
|
-
| `icqq_send_user_like` | 给用户点赞 | user |
|
|
53
|
-
| `icqq_set_anonymous` | 开启/关闭匿名聊天 | group_admin |
|
|
54
|
-
| `icqq_group_files` | 获取群文件列表 | user |
|
|
55
|
-
| `icqq_friend_list` | 获取好友列表 | user |
|
|
12
|
+
## Procedure
|
|
56
13
|
|
|
57
|
-
|
|
14
|
+
1. **Identify the module** — Match the user's intent to one of the modules below
|
|
15
|
+
2. **Load the reference** — Read ONLY the relevant module reference file(s)
|
|
16
|
+
3. **Check daemon** — Run `icqq status` if unsure whether the account is online
|
|
17
|
+
4. **Execute** — Run the command in terminal and report results
|
|
58
18
|
|
|
59
|
-
|
|
60
|
-
|------|------|------|
|
|
61
|
-
| `icqq_kick_member` | 踢出成员 | group_admin |
|
|
62
|
-
| `icqq_mute_member` | 禁言成员(duration=0 解除) | group_admin |
|
|
63
|
-
| `icqq_mute_all` | 全员禁言/解除 | group_admin |
|
|
64
|
-
| `icqq_set_admin` | 设置/取消管理员 | group_owner |
|
|
65
|
-
| `icqq_set_nickname` | 修改群昵称/名片 | group_admin |
|
|
66
|
-
| `icqq_set_group_name` | 修改群名称 | group_admin |
|
|
67
|
-
| `icqq_list_members` | 获取群成员列表 | user |
|
|
19
|
+
## Modules
|
|
68
20
|
|
|
69
|
-
|
|
21
|
+
Load the corresponding reference file based on what the user wants:
|
|
70
22
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
23
|
+
| Intent | Module | Reference |
|
|
24
|
+
|--------|--------|-----------|
|
|
25
|
+
| 发消息、撤回、聊天记录、消息详情、合并转发 | Messaging | [messaging.md](./references/messaging.md) |
|
|
26
|
+
| 好友列表、查看、发消息、戳一戳、点赞、删除、备注、文件、好友分组 | Friends | [friends.md](./references/friends.md) |
|
|
27
|
+
| 群管理:发消息、禁言、踢人、公告、邀请、签到、精华、成员、表态 | Groups | [groups.md](./references/groups.md) |
|
|
28
|
+
| 设置:昵称、头像、签名、群名片、群头衔、加群方式、匿名 | Settings | [settings.md](./references/settings.md) |
|
|
29
|
+
| 好友/群请求处理 | Requests | [requests.md](./references/requests.md) |
|
|
30
|
+
| 群文件:目录管理、上传下载、转发 | Group Files | [gfs.md](./references/gfs.md) |
|
|
31
|
+
| 登录、状态、配置、OCR、黑名单、Webhook、通知、UID转换、陌生人、漫游表情、缓存、重载、频道与子频道(Guild & Channel)、补全 | General | [general.md](./references/general.md) |
|
|
32
|
+
|
|
33
|
+
## Global Notes
|
|
34
|
+
|
|
35
|
+
- All `<uid>` = QQ number (integer), `<gid>` = group number (integer)
|
|
36
|
+
- Daemon must run first: `icqq login`
|
|
37
|
+
- Multi-instance: use `-u <uin>` or `ICQQ_CURRENT_UIN` env to specify account; defaults to `config.currentUin`
|
|
38
|
+
- **Use `icqq friend send` / `icqq group send` for non-interactive messaging** (agent-friendly); `icqq friend chat` / `icqq group chat` are interactive
|
|
39
|
+
- CQ code syntax in messages: `[face:id]` `[image:path]` `[at:uid]` `[at:all]` `[dice]` `[rps]`
|
|
40
|
+
- Quote strings with spaces: `icqq friend send 12345 "hello world"`
|
|
41
|
+
- Chain batch ops with `&&`
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Friends
|
|
2
|
+
|
|
3
|
+
## List & View
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
icqq friend list # List all friends
|
|
7
|
+
icqq friend view <uid> # View friend profile
|
|
8
|
+
icqq friend avatar-url <uid> # Get avatar URL
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Actions
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
icqq friend send <uid> <message> # Send private message
|
|
15
|
+
icqq friend poke <uid> # Poke a friend
|
|
16
|
+
icqq friend like <uid> [-t times] # Like (1-20 times, default 1)
|
|
17
|
+
icqq friend delete <uid> [-b] # Delete friend (-b: also block)
|
|
18
|
+
icqq friend remark <uid> <remark> # Set friend remark/alias
|
|
19
|
+
icqq friend add <uid> # Add friend (optionally via group)
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Files
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
icqq friend send-file <uid> <file> # Send file to friend
|
|
26
|
+
icqq friend file-info <uid> <fid> # Get file info
|
|
27
|
+
icqq friend file-url <uid> <fid> # Get file download URL
|
|
28
|
+
icqq friend recall-file <uid> <fid> # Recall a sent file
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Friend Classes (Groups)
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
icqq friend class list # List friend groups
|
|
35
|
+
icqq friend class add <name> # Create friend group
|
|
36
|
+
icqq friend class delete <id> # Delete friend group
|
|
37
|
+
icqq friend class rename <id> <name> # Rename friend group
|
|
38
|
+
icqq friend class set <uid> <id> # Move friend to group
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Examples
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
icqq friend list
|
|
45
|
+
icqq friend view 12345
|
|
46
|
+
icqq friend send 12345 "你好"
|
|
47
|
+
icqq friend poke 12345
|
|
48
|
+
icqq friend like 12345 -t 10
|
|
49
|
+
icqq friend remark 12345 "小王"
|
|
50
|
+
icqq friend delete 12345 -b
|
|
51
|
+
icqq friend send-file 12345 ./doc.pdf
|
|
52
|
+
icqq friend class list
|
|
53
|
+
icqq friend class add "大学同学"
|
|
54
|
+
```
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# General
|
|
2
|
+
|
|
3
|
+
## Account
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
icqq login # Login QQ and start daemon (interactive wizard)
|
|
7
|
+
icqq login -r # Quick reconnect using saved token
|
|
8
|
+
icqq login -q <uid> -r # Quick reconnect specific account
|
|
9
|
+
icqq status # Check all daemon/account statuses
|
|
10
|
+
icqq stop # Stop the daemon
|
|
11
|
+
icqq stop <uin> # Stop specific daemon
|
|
12
|
+
icqq switch # Switch current account (interactive)
|
|
13
|
+
icqq switch <uin> # Switch to specific account
|
|
14
|
+
icqq profile # View current account profile
|
|
15
|
+
icqq requests # View pending friend/group requests
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Config
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
icqq config get # View all config
|
|
22
|
+
icqq config get <key> # View specific config key (currentUin, webhookUrl, notifyEnabled)
|
|
23
|
+
icqq config set <key> <value> # Set config value
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Multi-Instance
|
|
27
|
+
|
|
28
|
+
Use `-u <uin>` global flag or `ICQQ_CURRENT_UIN` env to target a specific account.
|
|
29
|
+
Default falls back to `config.currentUin`.
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
icqq -u 12345 profile # View profile for account 12345
|
|
33
|
+
ICQQ_CURRENT_UIN=12345 icqq friend list
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Blacklist
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
icqq blacklist # View blacklist
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## OCR
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
icqq ocr <image> # OCR image text recognition (local file path)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Webhook
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
icqq webhook # View current webhook config
|
|
52
|
+
icqq webhook set <url> # Set webhook URL (daemon pushes events via POST)
|
|
53
|
+
icqq webhook off # Disable webhook
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Notification
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
icqq notify # View notification status
|
|
60
|
+
icqq notify on # Enable system notifications
|
|
61
|
+
icqq notify off # Disable system notifications
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Conversion
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
icqq convert uid <qq> # QQ number to UID
|
|
68
|
+
icqq convert uin <uid> # UID to QQ number
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Keys & URLs
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
icqq get client-key # Get ClientKey
|
|
75
|
+
icqq get pskey # Get PSKey
|
|
76
|
+
icqq get video-url <vid> # Get video download URL
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Stranger
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
icqq stranger view <uid> # View stranger profile
|
|
83
|
+
icqq stranger status <uid> # Check online status
|
|
84
|
+
icqq stranger add-setting <uid> # Check add-friend settings
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Roaming Emoji (Stamps)
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
icqq stamp list # List roaming emojis
|
|
91
|
+
icqq stamp delete # Delete roaming emoji
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Cache & Reload
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
icqq cache clean # Clear cache
|
|
98
|
+
icqq reload friends # Refresh friend list
|
|
99
|
+
icqq reload groups # Refresh group list
|
|
100
|
+
icqq reload blacklist # Reload blacklist
|
|
101
|
+
icqq reload guilds # Reload guild list
|
|
102
|
+
icqq reload strangers # Reload stranger list
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Guild (Server & Channel)
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
icqq guild list # List guilds
|
|
109
|
+
icqq guild info <guild_id> # View guild info
|
|
110
|
+
icqq guild members <guild_id> # List guild members
|
|
111
|
+
icqq guild channel list <guild_id> # List subchannels
|
|
112
|
+
icqq guild channel send <guild_id> <channel_id> <message> # Send channel message
|
|
113
|
+
icqq guild channel chat <guild_id> <channel_id> # Interactive channel chat
|
|
114
|
+
icqq guild channel recall <guild_id> <channel_id> <seq> # Recall channel message
|
|
115
|
+
icqq guild channel share <guild_id> <channel_id> <url> <title> # Share post link
|
|
116
|
+
icqq guild channel forum-url <guild_id> <channel_id> <forum_id> # Get forum URL
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Shell Completion
|
|
120
|
+
|
|
121
|
+
```
|
|
122
|
+
icqq completion [shell] # Generate shell completion script (bash/zsh/fish)
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## Examples
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
icqq status
|
|
129
|
+
icqq profile
|
|
130
|
+
icqq requests
|
|
131
|
+
icqq login -r
|
|
132
|
+
icqq config get
|
|
133
|
+
icqq config set currentUin 12345
|
|
134
|
+
icqq switch 12345
|
|
135
|
+
icqq -u 12345 profile
|
|
136
|
+
icqq ocr ./screenshot.png
|
|
137
|
+
icqq webhook set https://example.com/hook
|
|
138
|
+
icqq notify on
|
|
139
|
+
icqq convert uid 12345
|
|
140
|
+
icqq stranger view 12345
|
|
141
|
+
icqq stamp list
|
|
142
|
+
icqq cache clean
|
|
143
|
+
icqq reload friends
|
|
144
|
+
icqq guild list
|
|
145
|
+
```
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Group File System (GFS)
|
|
2
|
+
|
|
3
|
+
## List Files
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
icqq group fs list <gid> # List root directory
|
|
7
|
+
icqq group fs list <gid> -p <pid> # List subdirectory by parent ID
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Info & Stats
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
icqq group fs info <gid> # View GFS usage stats (space, file count)
|
|
14
|
+
icqq group fs stat <gid> <fid> # View file/directory details
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Manage
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
icqq group fs mkdir <gid> <name> # Create directory
|
|
21
|
+
icqq group fs delete <gid> <fid> # Delete file/directory by ID
|
|
22
|
+
icqq group fs rename <gid> <fid> <name> # Rename file/directory
|
|
23
|
+
icqq group fs move <gid> <fid> <pid> # Move file to directory
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Upload & Download
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
icqq group fs upload <gid> <file> # Upload file to group
|
|
30
|
+
icqq group fs download <gid> <fid> # Get download URL
|
|
31
|
+
icqq group fs forward <gid> <fid> <target_gid> # Forward file to another group
|
|
32
|
+
icqq group fs forward-offline <gid> <fid> # Convert to offline file
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
The `<fid>` (file ID) is shown in `icqq group fs list` output.
|
|
36
|
+
|
|
37
|
+
## Examples
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
icqq group fs list 67890
|
|
41
|
+
icqq group fs info 67890
|
|
42
|
+
icqq group fs stat 67890 abc123
|
|
43
|
+
icqq group fs mkdir 67890 "会议资料"
|
|
44
|
+
icqq group fs upload 67890 ./report.pdf
|
|
45
|
+
icqq group fs download 67890 abc123
|
|
46
|
+
icqq group fs rename 67890 abc123 "新文件名"
|
|
47
|
+
icqq group fs move 67890 abc123 def456
|
|
48
|
+
icqq group fs delete 67890 abc123
|
|
49
|
+
```
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Groups
|
|
2
|
+
|
|
3
|
+
## List & View
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
icqq group list # List all groups
|
|
7
|
+
icqq group view <gid> # View group info
|
|
8
|
+
icqq group member list <gid> # List group members
|
|
9
|
+
icqq group member view <gid> <uid> # View member info
|
|
10
|
+
icqq group avatar-url <gid> # Get group avatar URL
|
|
11
|
+
icqq group share <gid> # Get group share link
|
|
12
|
+
icqq group anon-info <gid> # View anonymous info
|
|
13
|
+
icqq group at-all-remain <gid> # Check @all remaining count
|
|
14
|
+
icqq group muted-list <gid> # View muted members list
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Mute
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
icqq group mute <gid> <uid> [-d seconds] # Mute member (default 600s, -d 0 to unmute)
|
|
21
|
+
icqq group mute-all <gid> # Mute all
|
|
22
|
+
icqq group mute-all <gid> --off # Unmute all
|
|
23
|
+
icqq group mute-anon <gid> <flag> # Mute anonymous member
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Kick & Quit
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
icqq group kick <gid> <uid> [-b] # Kick member (-b: block rejoin)
|
|
30
|
+
icqq group quit <gid> # Quit group
|
|
31
|
+
icqq group screen-member <gid> <uid> # Block/unblock member messages
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Social
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
icqq group send <gid> <message> # Send group message
|
|
38
|
+
icqq group poke <gid> <uid> # Poke group member
|
|
39
|
+
icqq group invite <gid> <uid> # Invite friend to group
|
|
40
|
+
icqq group sign <gid> # Group check-in
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Reactions
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
icqq group reaction add <msgid> <emoji> # React to message
|
|
47
|
+
icqq group reaction remove <msgid> <emoji> # Remove reaction
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Announcement & Essence
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
icqq group announce <gid> <content> # Post announcement
|
|
54
|
+
icqq group essence add <message_id> # Set essence message
|
|
55
|
+
icqq group essence remove <message_id> # Remove essence message
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Examples
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
icqq group list
|
|
62
|
+
icqq group view 67890
|
|
63
|
+
icqq group send 67890 "大家好"
|
|
64
|
+
icqq group member list 67890
|
|
65
|
+
icqq group member view 67890 12345
|
|
66
|
+
icqq group mute 67890 12345 -d 3600
|
|
67
|
+
icqq group kick 67890 12345 -b
|
|
68
|
+
icqq group announce 67890 "今晚8点开会"
|
|
69
|
+
icqq group sign 67890
|
|
70
|
+
icqq group reaction add abc123 👍
|
|
71
|
+
```
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Messaging
|
|
2
|
+
|
|
3
|
+
## Send Message (non-interactive)
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
icqq friend send <uid> <message> # Send private message
|
|
7
|
+
icqq group send <gid> <message> # Send group message
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
**IMPORTANT**: Always use `icqq friend send` / `icqq group send` for agent operations (non-interactive). The `icqq friend chat` / `icqq group chat` commands enter interactive mode that the agent cannot operate.
|
|
11
|
+
|
|
12
|
+
## CQ Code Syntax
|
|
13
|
+
|
|
14
|
+
Messages support inline CQ codes for rich content:
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
[face:178] # QQ face emoji (id 0~348)
|
|
18
|
+
[image:/path/to/pic.jpg] # Image (local path or URL)
|
|
19
|
+
[at:12345] # @ a user
|
|
20
|
+
[at:all] # @ everyone
|
|
21
|
+
[dice] # Dice
|
|
22
|
+
[rps] # Rock-paper-scissors
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Mixed example: `icqq group send 67890 "你好[face:178]看看[image:/tmp/pic.jpg]"`
|
|
26
|
+
|
|
27
|
+
## Recall
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
icqq recall <message_id>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Message Operations
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
icqq msg get <message_id> # View message details
|
|
37
|
+
icqq msg mark-read <message_id> # Mark message as read
|
|
38
|
+
icqq forward get <message_id> # View forwarded message content
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Chat History
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
icqq friend chat history <uid> [-c count] # Private chat history (default 20)
|
|
45
|
+
icqq group chat history <gid> [-c count] # Group chat history (default 20)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Interactive Chat (human only)
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
icqq friend chat <uid> # Enter private chat mode
|
|
52
|
+
icqq group chat <gid> # Enter group chat mode
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
> **Do NOT use interactive chat commands for agent operations.** Use `icqq friend send` / `icqq group send` instead.
|
|
56
|
+
|
|
57
|
+
## Examples
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
icqq friend send 12345 "你好"
|
|
61
|
+
icqq group send 67890 "大家好[face:21]"
|
|
62
|
+
icqq friend send 12345 "[image:https://example.com/pic.jpg]看这个"
|
|
63
|
+
icqq friend chat history 12345 -c 50
|
|
64
|
+
icqq group chat history 67890
|
|
65
|
+
icqq recall abc123
|
|
66
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Friend & Group Requests
|
|
2
|
+
|
|
3
|
+
## View Pending Requests
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
icqq requests # Show all pending friend/group requests with flags
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Handle Requests
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
icqq request accept <flag> # Accept friend request
|
|
13
|
+
icqq request accept <flag> -g # Accept group request
|
|
14
|
+
icqq request reject <flag> # Reject friend request
|
|
15
|
+
icqq request reject <flag> -g # Reject group request
|
|
16
|
+
icqq request reject <flag> -g -r "理由" # Reject with reason
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
The `<flag>` value is shown in `icqq requests` output.
|
|
20
|
+
|
|
21
|
+
## Examples
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
icqq requests
|
|
25
|
+
icqq request accept abc123
|
|
26
|
+
icqq request reject def456 -g -r "群已满"
|
|
27
|
+
```
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Settings
|
|
2
|
+
|
|
3
|
+
## Personal Settings
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
icqq set nickname <name> # Set nickname
|
|
7
|
+
icqq set gender <0|1|2> # 0=unknown, 1=male, 2=female
|
|
8
|
+
icqq set birthday <YYYYMMDD> # Set birthday
|
|
9
|
+
icqq set signature <text> # Set signature
|
|
10
|
+
icqq set description <text> # Set description
|
|
11
|
+
icqq set avatar <file> # Set avatar (image file path)
|
|
12
|
+
icqq set online-status <code> # 11=online, 31=away, 41=invisible, 50=busy, 60=Q-me, 70=DND
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Group Settings
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
icqq group set name <gid> <name> # Set group name
|
|
19
|
+
icqq group set avatar <gid> <file> # Set group avatar
|
|
20
|
+
icqq group set card <gid> <uid> <card> # Set member card/nickname
|
|
21
|
+
icqq group set title <gid> <uid> <title> # Set member special title
|
|
22
|
+
icqq group set admin <gid> <uid> # Set admin
|
|
23
|
+
icqq group set admin <gid> <uid> -r # Remove admin
|
|
24
|
+
icqq group set remark <gid> <remark> # Set group remark
|
|
25
|
+
icqq group set anonymous <gid> # Toggle anonymous
|
|
26
|
+
icqq group set join-type <gid> <type> # Set join method
|
|
27
|
+
icqq group set rate-limit <gid> <limit> # Set message rate limit
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Examples
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
icqq set nickname "新昵称"
|
|
34
|
+
icqq set signature "今天天气不错"
|
|
35
|
+
icqq set online-status 50
|
|
36
|
+
icqq group set name 67890 "新群名"
|
|
37
|
+
icqq group set card 67890 12345 "管理员小王"
|
|
38
|
+
```
|