forked from kyubotics/coolq-http-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.json
162 lines (162 loc) · 3.56 KB
/
app.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
{
"ret": 1,
"apiver": 9,
"name": "CQHTTP",
"version": "4.15.0",
"version_id": 441,
"author": "Richard Chien",
"description": "通过 HTTP 或 WebSocket 对 酷Q 的事件进行上报以及接收请求来调用 酷Q 的 DLL 接口,从而可以使用其它语言编写 酷Q 插件。具体见 https://cqhttp.cc。",
"event": [
{
"id": 1003,
"type": 1003,
"name": "插件启用",
"priority": 20000,
"function": "cq_app_enable"
},
{
"id": 1004,
"type": 1004,
"name": "插件停用",
"priority": 20000,
"function": "cq_app_disable"
},
{
"id": 1001,
"type": 1001,
"name": "酷Q启动",
"priority": 20000,
"function": "cq_coolq_start"
},
{
"id": 1002,
"type": 1002,
"name": "酷Q退出",
"priority": 20000,
"function": "cq_coolq_exit"
},
{
"id": 1,
"type": 21,
"name": "私聊消息",
"function": "cq_event_private_msg",
"priority": 20000
},
{
"id": 2,
"type": 2,
"name": "群消息",
"function": "cq_event_group_msg",
"priority": 20000
},
{
"id": 3,
"type": 4,
"name": "讨论组消息",
"function": "cq_event_discuss_msg",
"priority": 20000
},
{
"id": 4,
"type": 11,
"name": "群文件上传",
"function": "cq_event_group_upload",
"priority": 20000
},
{
"id": 5,
"type": 101,
"name": "群管理员变动",
"function": "cq_event_group_admin",
"priority": 20000
},
{
"id": 6,
"type": 102,
"name": "群成员减少",
"function": "cq_event_group_member_decrease",
"priority": 20000
},
{
"id": 7,
"type": 103,
"name": "群成员增加",
"function": "cq_event_group_member_increase",
"priority": 20000
},
{
"id": 8,
"type": 104,
"name": "群禁言",
"function": "cq_event_group_ban",
"priority": 20000
},
{
"id": 10,
"type": 201,
"name": "好友添加",
"function": "cq_event_friend_add",
"priority": 20000
},
{
"id": 11,
"type": 301,
"name": "加好友请求",
"function": "cq_event_add_friend_request",
"priority": 20000
},
{
"id": 12,
"type": 302,
"name": "加群请求/邀请",
"function": "cq_event_add_group_request",
"priority": 20000
}
],
"menu": [
{
"name": "重启应用",
"function": "cq_menu_restart"
},
{
"name": "检查更新",
"function": "cq_menu_check_update"
},
{
"name": "打开应用目录",
"function": "cq_menu_open_app_dir"
},
{
"name": "打开酷Q目录",
"function": "cq_menu_open_coolq_dir"
}
],
"status": [],
"auth": [
20, // getCookies / getCsrfToken
30, // getRecord
101, // sendGroupMsg
103, // sendDiscussMsg
106, // sendPrivateMsg
110, // sendLikeV2 / sendLike
120, // setGroupKick
121, // setGroupBan
122, // setGroupAdmin
123, // setGroupWholeBan
124, // setGroupAnonymousBan
125, // setGroupAnonymous
126, // setGroupCard
127, // setGroupLeave
128, // setGroupSpecialTitle
130, // getGroupMemberInfoV2 / getGroupMemberInfo
131, // getStrangerInfo
132, // getGroupInfo
140, // setDiscussLeave
150, // setFriendAddRequest
151, // setGroupAddRequest
160, // getGroupMemberList
161, // getGroupList
162, // getFriendList
180 // deleteMsg
]
}