This repository was archived by the owner on Sep 21, 2020. It is now read-only.
generated from kyubotics/cqcppsdk-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathapp.json
More file actions
147 lines (146 loc) · 3.58 KB
/
app.json
File metadata and controls
147 lines (146 loc) · 3.58 KB
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
{
"ret": 1,
"apiver": 9,
"name": "CQuery - CS1.6/CSGO服务器查询",
"version": "1.0.0",
"version_id": 1,
"author": "MoeMod",
"description": "输入服务器IP地址和端口(如123.123.123.123:27015)即可获取当前CS1.6/CSGO服务器信息!(原CS1.6 Thanatos死神服务器内部使用)",
"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 宏调用的参数
],
"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
]
}