-
Notifications
You must be signed in to change notification settings - Fork 0
/
org.ots123it.open.sdubotr.json
153 lines (152 loc) · 4.61 KB
/
org.ots123it.open.sdubotr.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
// 酷Q 的Json文件支持以 // 开头的注释。
// 打包前,应用的 .jar, .json 的文件名须以appid命名,应用AppInfo返回的内容须改为appid
// 如 appid=com.example.demo, 则jar及json文件需分别命名为 com.example.demo.jar、com.example.demo.json
{
"ret": 1, // 返回码,固定为1
"apiver": 9, // Api版本,本SDK为9
"name": "123 SduBotR", // 应用名称
"version": "Alpha 0.6.0", // 应用版本
"version_id": 34, // 应用顺序版本(每次发布时至少+1)
"author": "御坂12456", // 应用作者
"path": "lib",// 应用lib加载处,默认插件同名文件夹目录下lib文件夹,此目录可以填相对路径和绝对路径,相对:应用同名文件夹
"class": "org.ots123it.open.sdubotr.Start", // 应用加载主类,默认使用appid加载,如需使用则删除前面注释
"description": "Study, Develop, Unique.",
"event": [ // 事件列表,同一事件类型可重复定义(发布前请删除无用事件)
{
"id": 1, // 事件ID
"type": 21, // 事件类型
"name": "私聊消息处理", // 事件名称
"function": "privateMsg", // 事件对应函数
"priority": 30000 // 事件优先级(参见 cq.im/deveventpriority)
},
{
"id": 2,
"type": 2,
"name": "群消息处理",
"function": "groupMsg",
"priority": 30000
},
{
"id": 3,
"type": 4,
"name": "讨论组消息处理",
"function": "discussMsg",
"priority": 30000
},
{
"id": 4,
"type": 11,
"name": "群文件上传事件处理",
"function": "groupUpload",
"priority": 30000
},
{
"id": 5,
"type": 101,
"name": "群管理变动事件处理",
"function": "groupAdmin",
"priority": 30000
},
{
"id": 6,
"type": 102,
"name": "群成员减少事件处理",
"function": "groupMemberDecrease",
"priority": 30000
},
{
"id": 7,
"type": 103,
"name": "群成员增加事件处理",
"function": "groupMemberIncrease",
"priority": 30000
},
{
"id":8,
"type":104,
"name":"群禁言事件处理",
"function":"groupBan",
"priority":30000
},
{
"id": 10,
"type": 201,
"name": "好友已添加事件处理",
"function": "friendAdd",
"priority": 30000
},
{
"id": 8,
"type": 301,
"name": "好友添加请求处理",
"function": "requestAddFriend",
"priority": 30000
},
{
"id": 9,
"type": 302,
"name": "群添加请求处理",
"function": "requestAddGroup",
"priority": 30000
},
{
"id": 1001,
"type": 1001,
"name": "酷Q启动事件",
"priority": 30000,
"function": "startup"
},
{
"id": 1002,
"type": 1002,
"name": "酷Q关闭事件",
"priority": 30000,
"function": "exit"
},
{
"id": 1003,
"type": 1003,
"name": "应用已被启用",
"priority": 30000,
"function": "enable"
},
{
"id": 1004,
"type": 1004,
"name": "应用将被停用",
"priority": 30000,
"function": "disable"
}
],
"menu": [ // 设置菜单(发布前请删除无用菜单,如果无需设置菜单请全部删除)
],
"status": [ // 悬浮窗状态(见 com.example.status 样例)
],
"auth": [ // 应用权限(发布前请删除无用权限)
//20, //[敏感]取Cookies getCookies / getCsrfToken
//30, //接收语音 getRecord
101, //发送群消息 sendGroupMsg
103, //发送讨论组消息 sendDiscussMsg
106, //发送私聊消息 sendPrivateMsg
110, //发送赞 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
]
}