dsh-qq-tools 0.8.1 → 0.9.0
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/README.md +66 -13
- package/cordis.patch.yml +10 -1
- package/lib/shared.js +1321 -42
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +14 -2
- package/tools/qq-friend-management/index.js +28 -0
- package/tools/qq-friend-management/locale/en.json +6 -0
- package/tools/qq-friend-management/locale/zh.json +6 -0
- package/tools/qq-qzone/index.js +22 -0
- package/tools/qq-qzone/locale/en.json +6 -0
- package/tools/qq-qzone/locale/zh.json +6 -0
- package/tools/qq-set-avatar/index.js +8 -0
- package/tools/qq-set-avatar/locale/en.json +6 -0
- package/tools/qq-set-avatar/locale/zh.json +6 -0
package/locale/en.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "dsh-qq-tools",
|
|
4
|
-
"description": "QQ group/private chat tools for DSH:
|
|
4
|
+
"description": "QQ group/private chat tools for DSH: groups, history, messaging, faces and SnowLuma favorites, private chat, pokes, avatar changes, friend management, QQ Space posts, and target-session selection."
|
|
5
5
|
}
|
|
6
6
|
}
|
package/locale/zh.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "dsh-qq-tools",
|
|
4
|
-
"description": "给大肥鱼会话用的 QQ 群/私聊工具:列群、看群聊天记录、发群消息、发表情、收藏表情(SnowLuma
|
|
4
|
+
"description": "给大肥鱼会话用的 QQ 群/私聊工具:列群、看群聊天记录、发群消息、发表情、收藏表情(SnowLuma 收藏夹)、好友/私聊记录、发私聊消息、私聊唤醒、群成员、戳一戳感知/戳回去、更改头像、好友管理、QQ 空间说说。"
|
|
5
5
|
}
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-qq-tools",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "给大肥鱼会话用的 QQ 群/私聊工具:列群、看群记录、发群消息、发表情、收藏表情(SnowLuma
|
|
3
|
+
"version": "0.9.0",
|
|
4
|
+
"description": "给大肥鱼会话用的 QQ 群/私聊工具:列群、看群记录、发群消息、发表情、收藏表情(SnowLuma 收藏夹)、好友/私聊记录、发私聊消息、私聊唤醒、群成员、戳一戳感知/戳回去、更改头像、好友管理(资料/备注/分组/删好友/名片赞/好友申请)、QQ 空间说说(列表/详情/发表/评论/点赞/权限)、挂载会话选择。11 个工具组加 1 个设置组件,可在插件页逐个开关。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"license": "MIT",
|
|
@@ -34,6 +34,9 @@
|
|
|
34
34
|
"engines": {
|
|
35
35
|
"node": ">=22"
|
|
36
36
|
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"test": "node test/smoke.mjs"
|
|
39
|
+
},
|
|
37
40
|
"exports": {
|
|
38
41
|
".": "./lib/index.js",
|
|
39
42
|
"./client": "./lib/client.js",
|
|
@@ -61,6 +64,15 @@
|
|
|
61
64
|
"./tools/qq-send-poke": "./tools/qq-send-poke/index.js",
|
|
62
65
|
"./tools/qq-send-poke/locale/en.json": "./tools/qq-send-poke/locale/en.json",
|
|
63
66
|
"./tools/qq-send-poke/locale/zh.json": "./tools/qq-send-poke/locale/zh.json",
|
|
67
|
+
"./tools/qq-set-avatar": "./tools/qq-set-avatar/index.js",
|
|
68
|
+
"./tools/qq-set-avatar/locale/en.json": "./tools/qq-set-avatar/locale/en.json",
|
|
69
|
+
"./tools/qq-set-avatar/locale/zh.json": "./tools/qq-set-avatar/locale/zh.json",
|
|
70
|
+
"./tools/qq-friend-management": "./tools/qq-friend-management/index.js",
|
|
71
|
+
"./tools/qq-friend-management/locale/en.json": "./tools/qq-friend-management/locale/en.json",
|
|
72
|
+
"./tools/qq-friend-management/locale/zh.json": "./tools/qq-friend-management/locale/zh.json",
|
|
73
|
+
"./tools/qq-qzone": "./tools/qq-qzone/index.js",
|
|
74
|
+
"./tools/qq-qzone/locale/en.json": "./tools/qq-qzone/locale/en.json",
|
|
75
|
+
"./tools/qq-qzone/locale/zh.json": "./tools/qq-qzone/locale/zh.json",
|
|
64
76
|
"./locale/en.json": "./locale/en.json",
|
|
65
77
|
"./locale/zh.json": "./locale/zh.json",
|
|
66
78
|
"./package.json": "./package.json"
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
makeDeleteFriendTool,
|
|
3
|
+
makeGetFriendInfoTool,
|
|
4
|
+
makeHandleFriendRequestTool,
|
|
5
|
+
makeListFriendCategoriesTool,
|
|
6
|
+
makeListFriendRequestsTool,
|
|
7
|
+
makeSendLikeTool,
|
|
8
|
+
makeUpdateFriendTool,
|
|
9
|
+
mountOneTool,
|
|
10
|
+
startFriendRequestWatcher,
|
|
11
|
+
} from '../../lib/shared.js'
|
|
12
|
+
|
|
13
|
+
export const name = 'qq-tools-friend-management'
|
|
14
|
+
export const inject = ['agents', 'timer', 'tools']
|
|
15
|
+
|
|
16
|
+
export function apply(ctx) {
|
|
17
|
+
const tools = [
|
|
18
|
+
mountOneTool(ctx, makeGetFriendInfoTool()),
|
|
19
|
+
mountOneTool(ctx, makeListFriendCategoriesTool()),
|
|
20
|
+
mountOneTool(ctx, makeUpdateFriendTool()),
|
|
21
|
+
mountOneTool(ctx, makeDeleteFriendTool()),
|
|
22
|
+
mountOneTool(ctx, makeSendLikeTool()),
|
|
23
|
+
mountOneTool(ctx, makeListFriendRequestsTool()),
|
|
24
|
+
mountOneTool(ctx, makeHandleFriendRequestTool()),
|
|
25
|
+
]
|
|
26
|
+
startFriendRequestWatcher(ctx)
|
|
27
|
+
return { tools }
|
|
28
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
admitImagesFor,
|
|
3
|
+
makeGetQzonePostTool,
|
|
4
|
+
makeListQzoneTool,
|
|
5
|
+
makeManageQzoneTool,
|
|
6
|
+
makeSendQzonePostTool,
|
|
7
|
+
mountOneTool,
|
|
8
|
+
} from '../../lib/shared.js'
|
|
9
|
+
|
|
10
|
+
export const name = 'qq-tools-qzone'
|
|
11
|
+
export const inject = ['agents', 'timer', 'tools', 'attachments']
|
|
12
|
+
|
|
13
|
+
export function apply(ctx) {
|
|
14
|
+
const admitImages = admitImagesFor(ctx)
|
|
15
|
+
const tools = [
|
|
16
|
+
mountOneTool(ctx, makeListQzoneTool(admitImages)),
|
|
17
|
+
mountOneTool(ctx, makeGetQzonePostTool(admitImages)),
|
|
18
|
+
mountOneTool(ctx, makeSendQzonePostTool()),
|
|
19
|
+
mountOneTool(ctx, makeManageQzoneTool()),
|
|
20
|
+
]
|
|
21
|
+
return { tools }
|
|
22
|
+
}
|