-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.json
310 lines (310 loc) · 8.5 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
<<<<<<< HEAD
{
"ret": 1,
"apiver": 9,
"name": "AntiLeaf-Bot",
"version": "1.0.0",
"version_id": 1,
"author": "AntiLeaf",
"description": "OOP版本的Bot",
"event": [ // 可以修改 priority 来调整插件的优先级, 其它字段不可修改, 否则将无法使用
{
"id": 1003,
"type": 1003,
"name": "插件启用",
"priority": 30000,
"function": "cq_event_enable"
},
{
"id": 1004,
"type": 1004,
"name": "插件停用",
"priority": 30000,
"function": "cq_event_disable"
},
{
"id": 1001,
"type": 1001,
"name": "酷Q启动",
"priority": 30000,
"function": "cq_event_coolq_start"
},
{
"id": 1002,
"type": 1002,
"name": "酷Q退出",
"priority": 30000,
"function": "cq_event_coolq_exit"
},
{
"id": 1,
"type": 21,
"name": "私聊消息",
"function": "cq_event_private_message",
"priority": 30000
},
{
"id": 2,
"type": 2,
"name": "群消息",
"function": "cq_event_group_message",
"priority": 30000
},
{
"id": 3,
"type": 4,
"name": "讨论组消息",
"function": "cq_event_discuss_message",
"priority": 30000
},
{
"id": 4,
"type": 11,
"name": "群文件上传",
"function": "cq_event_group_upload",
"priority": 30000
},
{
"id": 5,
"type": 101,
"name": "群管理员变动",
"function": "cq_event_group_admin",
"priority": 30000
},
{
"id": 6,
"type": 102,
"name": "群成员减少",
"function": "cq_event_group_member_decrease",
"priority": 30000
},
{
"id": 7,
"type": 103,
"name": "群成员增加",
"function": "cq_event_group_member_increase",
"priority": 30000
},
{
"id": 8,
"type": 104,
"name": "群禁言",
"function": "cq_event_group_ban",
"priority": 30000
},
{
"id": 10,
"type": 201,
"name": "好友已添加",
"function": "cq_event_friend_add",
"priority": 30000
},
{
"id": 11,
"type": 301,
"name": "好友请求",
"function": "cq_event_friend_request",
"priority": 30000
},
{
"id": 12,
"type": 302,
"name": "群请求",
"function": "cq_event_group_request",
"priority": 30000
}
],
"menu": [ // name 字段为显示在酷Q应用菜单中的文字, function 字段对应 CQ_MENU 宏调用的参数
{
"name": "菜单 1",
"function": "menu_demo_1"
},
{
"name": "菜单 2",
"function": "menu_demo_2"
}
],
"status": [],
"auth": [ // 需要根据 API 调用情况来注释或取消注释这里的项
20, // get_cookies / get_csrf_token
30, // get_record
101, // send_group_message
103, // send_discuss_message
106, // send_private_message
110, // send_like
120, // set_group_kick
121, // set_group_ban
122, // set_group_admin
123, // set_group_whole_ban
124, // set_group_anonymous_ban
125, // set_group_anonymous
126, // set_group_card
127, // set_group_leave
128, // set_group_special_title
130, // get_group_member_info
131, // get_stranger_info
132, // get_group_info
140, // set_discuss_leave
150, // set_friend_request
151, // set_group_request
160, // get_group_member_list
161, // get_group_list
162, // get_friend_list
180 // delete_message
]
=======
{
"ret": 1,
"apiver": 9,
"name": "AntiLeaf-Bot",
"version": "1.0.0",
"version_id": 1,
"author": "AntiLeaf",
"description": "OOP版本的Bot",
"event": [ // 可以修改 priority 来调整插件的优先级, 其它字段不可修改, 否则将无法使用
{
"id": 1003,
"type": 1003,
"name": "插件启用",
"priority": 30000,
"function": "cq_event_enable"
},
{
"id": 1004,
"type": 1004,
"name": "插件停用",
"priority": 30000,
"function": "cq_event_disable"
},
{
"id": 1001,
"type": 1001,
"name": "酷Q启动",
"priority": 30000,
"function": "cq_event_coolq_start"
},
{
"id": 1002,
"type": 1002,
"name": "酷Q退出",
"priority": 30000,
"function": "cq_event_coolq_exit"
},
{
"id": 1,
"type": 21,
"name": "私聊消息",
"function": "cq_event_private_message",
"priority": 30000
},
{
"id": 2,
"type": 2,
"name": "群消息",
"function": "cq_event_group_message",
"priority": 30000
},
{
"id": 3,
"type": 4,
"name": "讨论组消息",
"function": "cq_event_discuss_message",
"priority": 30000
},
{
"id": 4,
"type": 11,
"name": "群文件上传",
"function": "cq_event_group_upload",
"priority": 30000
},
{
"id": 5,
"type": 101,
"name": "群管理员变动",
"function": "cq_event_group_admin",
"priority": 30000
},
{
"id": 6,
"type": 102,
"name": "群成员减少",
"function": "cq_event_group_member_decrease",
"priority": 30000
},
{
"id": 7,
"type": 103,
"name": "群成员增加",
"function": "cq_event_group_member_increase",
"priority": 30000
},
{
"id": 8,
"type": 104,
"name": "群禁言",
"function": "cq_event_group_ban",
"priority": 30000
},
{
"id": 10,
"type": 201,
"name": "好友已添加",
"function": "cq_event_friend_add",
"priority": 30000
},
{
"id": 11,
"type": 301,
"name": "好友请求",
"function": "cq_event_friend_request",
"priority": 30000
},
{
"id": 12,
"type": 302,
"name": "群请求",
"function": "cq_event_group_request",
"priority": 30000
}
],
"menu": [ // name 字段为显示在酷Q应用菜单中的文字, function 字段对应 CQ_MENU 宏调用的参数
{
"name": "菜单 1",
"function": "menu_demo_1"
},
{
"name": "菜单 2",
"function": "menu_demo_2"
}
],
"status": [],
"auth": [ // 需要根据 API 调用情况来注释或取消注释这里的项
20, // get_cookies / get_csrf_token
30, // get_record
101, // send_group_message
103, // send_discuss_message
106, // send_private_message
110, // send_like
120, // set_group_kick
121, // set_group_ban
122, // set_group_admin
123, // set_group_whole_ban
124, // set_group_anonymous_ban
125, // set_group_anonymous
126, // set_group_card
127, // set_group_leave
128, // set_group_special_title
130, // get_group_member_info
131, // get_stranger_info
132, // get_group_info
140, // set_discuss_leave
150, // set_friend_request
151, // set_group_request
160, // get_group_member_list
161, // get_group_list
162, // get_friend_list
180 // delete_message
]
>>>>>>> e1fa7543481f021ac86a6771f02ffdd12868b3a0
}