koishi-plugin-dew-bot 1.0.188
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/lib/html/css/body.css +287 -0
- package/lib/html/css/equip.css +115 -0
- package/lib/html/css/skill.css +75 -0
- package/lib/html/css/talent.css +58 -0
- package/lib/html/page/body.html +96 -0
- package/lib/html/page/equip.html +98 -0
- package/lib/html/page/mini_texas.html +493 -0
- package/lib/html/page/skill.html +76 -0
- package/lib/html/page/talent.html +76 -0
- package/lib/html/res/avatar.jpg +0 -0
- package/lib/html/res/body/box.png +0 -0
- package/lib/html/res/body/share/test.png +0 -0
- package/lib/html/res/body/title/test.png +0 -0
- package/lib/html/res/body/title/test1.png +0 -0
- package/lib/html/res/equip/equip_border.png +0 -0
- package/lib/html/res/equip/icon/none.png +0 -0
- package/lib/html/res/equip/icon/test.png +0 -0
- package/lib/html/res/equip/quality/0.png +0 -0
- package/lib/html/res/equip/quality/1.png +0 -0
- package/lib/html/res/equip/quality/2.png +0 -0
- package/lib/html/res/equip/quality/3.png +0 -0
- package/lib/html/res/equip/quality/4.png +0 -0
- package/lib/html/res/equip/quality/5.png +0 -0
- package/lib/html/res/equip/quality/6.png +0 -0
- package/lib/html/res/equip/quality/7.png +0 -0
- package/lib/html/res/equip/quality/8.png +0 -0
- package/lib/html/res/equip/quality/9.png +0 -0
- package/lib/html/res/font/cn.ttf +0 -0
- package/lib/html/res/font/xiaomai.ttf +0 -0
- package/lib/html/res/mini/chip/chip0.png +0 -0
- package/lib/html/res/mini/chip/chip1.png +0 -0
- package/lib/html/res/mini/chip/chip2.png +0 -0
- package/lib/html/res/mini/chip/chip3.png +0 -0
- package/lib/html/res/mini/chip/chip4.png +0 -0
- package/lib/html/res/mini/chip/chip5.png +0 -0
- package/lib/html/res/mini/poker/backPoker.png +0 -0
- package/lib/html/res/mini/poker/poker_0_10.png +0 -0
- package/lib/html/res/mini/poker/poker_0_11.png +0 -0
- package/lib/html/res/mini/poker/poker_0_12.png +0 -0
- package/lib/html/res/mini/poker/poker_0_13.png +0 -0
- package/lib/html/res/mini/poker/poker_0_14.png +0 -0
- package/lib/html/res/mini/poker/poker_0_2.png +0 -0
- package/lib/html/res/mini/poker/poker_0_3.png +0 -0
- package/lib/html/res/mini/poker/poker_0_4.png +0 -0
- package/lib/html/res/mini/poker/poker_0_5.png +0 -0
- package/lib/html/res/mini/poker/poker_0_6.png +0 -0
- package/lib/html/res/mini/poker/poker_0_7.png +0 -0
- package/lib/html/res/mini/poker/poker_0_8.png +0 -0
- package/lib/html/res/mini/poker/poker_0_9.png +0 -0
- package/lib/html/res/mini/poker/poker_1_10.png +0 -0
- package/lib/html/res/mini/poker/poker_1_11.png +0 -0
- package/lib/html/res/mini/poker/poker_1_12.png +0 -0
- package/lib/html/res/mini/poker/poker_1_13.png +0 -0
- package/lib/html/res/mini/poker/poker_1_14.png +0 -0
- package/lib/html/res/mini/poker/poker_1_2.png +0 -0
- package/lib/html/res/mini/poker/poker_1_3.png +0 -0
- package/lib/html/res/mini/poker/poker_1_4.png +0 -0
- package/lib/html/res/mini/poker/poker_1_5.png +0 -0
- package/lib/html/res/mini/poker/poker_1_6.png +0 -0
- package/lib/html/res/mini/poker/poker_1_7.png +0 -0
- package/lib/html/res/mini/poker/poker_1_8.png +0 -0
- package/lib/html/res/mini/poker/poker_1_9.png +0 -0
- package/lib/html/res/mini/poker/poker_2_10.png +0 -0
- package/lib/html/res/mini/poker/poker_2_11.png +0 -0
- package/lib/html/res/mini/poker/poker_2_12.png +0 -0
- package/lib/html/res/mini/poker/poker_2_13.png +0 -0
- package/lib/html/res/mini/poker/poker_2_14.png +0 -0
- package/lib/html/res/mini/poker/poker_2_2.png +0 -0
- package/lib/html/res/mini/poker/poker_2_3.png +0 -0
- package/lib/html/res/mini/poker/poker_2_4.png +0 -0
- package/lib/html/res/mini/poker/poker_2_5.png +0 -0
- package/lib/html/res/mini/poker/poker_2_6.png +0 -0
- package/lib/html/res/mini/poker/poker_2_7.png +0 -0
- package/lib/html/res/mini/poker/poker_2_8.png +0 -0
- package/lib/html/res/mini/poker/poker_2_9.png +0 -0
- package/lib/html/res/mini/poker/poker_3_10.png +0 -0
- package/lib/html/res/mini/poker/poker_3_11.png +0 -0
- package/lib/html/res/mini/poker/poker_3_12.png +0 -0
- package/lib/html/res/mini/poker/poker_3_13.png +0 -0
- package/lib/html/res/mini/poker/poker_3_14.png +0 -0
- package/lib/html/res/mini/poker/poker_3_2.png +0 -0
- package/lib/html/res/mini/poker/poker_3_3.png +0 -0
- package/lib/html/res/mini/poker/poker_3_4.png +0 -0
- package/lib/html/res/mini/poker/poker_3_5.png +0 -0
- package/lib/html/res/mini/poker/poker_3_6.png +0 -0
- package/lib/html/res/mini/poker/poker_3_7.png +0 -0
- package/lib/html/res/mini/poker/poker_3_8.png +0 -0
- package/lib/html/res/mini/poker/poker_3_9.png +0 -0
- package/lib/html/res/mini/texas/bg.jpg +0 -0
- package/lib/html/res/mini/texas/win.png +0 -0
- package/lib/html/res/quality/test.png +0 -0
- package/lib/html/res/skill/att/dark.png +0 -0
- package/lib/html/res/skill/att/divine.png +0 -0
- package/lib/html/res/skill/att/earth.png +0 -0
- package/lib/html/res/skill/att/fire.png +0 -0
- package/lib/html/res/skill/att/light.png +0 -0
- package/lib/html/res/skill/att/spell.png +0 -0
- package/lib/html/res/skill/att/trap.png +0 -0
- package/lib/html/res/skill/att/water.png +0 -0
- package/lib/html/res/skill/att/wind.png +0 -0
- package/lib/html/res/skill/frame/0.jpg +0 -0
- package/lib/html/res/skill/frame/1.jpg +0 -0
- package/lib/html/res/skill/frame/2.jpg +0 -0
- package/lib/html/res/skill/frame/3.jpg +0 -0
- package/lib/html/res/skill/frame/4.jpg +0 -0
- package/lib/html/res/skill/frame/5.jpg +0 -0
- package/lib/html/res/skill/frame/6.jpg +0 -0
- package/lib/html/res/skill/frame/7.jpg +0 -0
- package/lib/html/res/skill/frame/8.jpg +0 -0
- package/lib/html/res/skill/frame/9.jpg +0 -0
- package/lib/html/res/skill/star/level.png +0 -0
- package/lib/html/res/skill/star/rank.png +0 -0
- package/lib/html/res/skill/test.jpg +0 -0
- package/lib/html/res/vue2.js +11 -0
- package/lib/index.js +46 -0
- package/lib/inits.js +43 -0
- package/lib/msgCsl.js +97 -0
- package/lib/plugin/console.js +17 -0
- package/lib/plugin/messageQueue.js +134 -0
- package/lib/plugin/puppeteer.js +81 -0
- package/lib/plugin/rateLimiter.js +104 -0
- package/lib/plugin/server.js +206 -0
- package/lib/plugin/serverHandel/handel_base.js +27 -0
- package/lib/plugin/serverHandel/image.js +19 -0
- package/lib/plugin/serverHandel/none.js +15 -0
- package/lib/plugin/serverHandel/text.js +20 -0
- package/lib/plugin/sessions.js +33 -0
- package/lib/shared/IBody.js +2 -0
- package/lib/shared/IMassage.js +9 -0
- package/lib/shared/MsgMessage.js +4 -0
- package/lib/shared/PtlMessage.js +4 -0
- package/lib/shared/PtlTest.js +4 -0
- package/lib/shared/base.js +2 -0
- package/lib/shared/face/index.js +47 -0
- package/lib/shared/serviceProto.js +328 -0
- package/package.json +36 -0
- package/readme.md +9 -0
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.serviceProto = void 0;
|
|
4
|
+
exports.serviceProto = {
|
|
5
|
+
"version": 4,
|
|
6
|
+
"services": [
|
|
7
|
+
{
|
|
8
|
+
"id": 2,
|
|
9
|
+
"name": "Message",
|
|
10
|
+
"type": "msg",
|
|
11
|
+
"conf": {}
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": 0,
|
|
15
|
+
"name": "Message",
|
|
16
|
+
"type": "api",
|
|
17
|
+
"conf": {}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": 1,
|
|
21
|
+
"name": "Test",
|
|
22
|
+
"type": "api",
|
|
23
|
+
"conf": {}
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"types": {
|
|
27
|
+
"MsgMessage/MsgMessage": {
|
|
28
|
+
"type": "Interface",
|
|
29
|
+
"extends": [
|
|
30
|
+
{
|
|
31
|
+
"id": 0,
|
|
32
|
+
"type": {
|
|
33
|
+
"type": "Reference",
|
|
34
|
+
"target": "base/BaseMessage"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"properties": [
|
|
39
|
+
{
|
|
40
|
+
"id": 0,
|
|
41
|
+
"name": "action",
|
|
42
|
+
"type": {
|
|
43
|
+
"type": "Reference",
|
|
44
|
+
"target": "IMassage/ClientAction"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": 1,
|
|
49
|
+
"name": "Message",
|
|
50
|
+
"type": {
|
|
51
|
+
"type": "Reference",
|
|
52
|
+
"target": "IMassage/Message"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": 2,
|
|
57
|
+
"name": "info",
|
|
58
|
+
"type": {
|
|
59
|
+
"type": "Any"
|
|
60
|
+
},
|
|
61
|
+
"optional": true
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": 3,
|
|
65
|
+
"name": "data",
|
|
66
|
+
"type": {
|
|
67
|
+
"type": "Any"
|
|
68
|
+
},
|
|
69
|
+
"optional": true
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"id": 4,
|
|
73
|
+
"name": "_player",
|
|
74
|
+
"type": {
|
|
75
|
+
"type": "Any"
|
|
76
|
+
},
|
|
77
|
+
"optional": true
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"base/BaseMessage": {
|
|
82
|
+
"type": "Interface"
|
|
83
|
+
},
|
|
84
|
+
"IMassage/ClientAction": {
|
|
85
|
+
"type": "Enum",
|
|
86
|
+
"members": [
|
|
87
|
+
{
|
|
88
|
+
"id": 0,
|
|
89
|
+
"value": "none"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"id": 1,
|
|
93
|
+
"value": "image"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"id": 2,
|
|
97
|
+
"value": "text"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
"IMassage/Message": {
|
|
102
|
+
"type": "Interface",
|
|
103
|
+
"properties": [
|
|
104
|
+
{
|
|
105
|
+
"id": 0,
|
|
106
|
+
"name": "msgId",
|
|
107
|
+
"type": {
|
|
108
|
+
"type": "String"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": 1,
|
|
113
|
+
"name": "userId",
|
|
114
|
+
"type": {
|
|
115
|
+
"type": "String"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": 2,
|
|
120
|
+
"name": "private",
|
|
121
|
+
"type": {
|
|
122
|
+
"type": "Boolean"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"id": 3,
|
|
127
|
+
"name": "content",
|
|
128
|
+
"type": {
|
|
129
|
+
"type": "String"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"id": 4,
|
|
134
|
+
"name": "guildId",
|
|
135
|
+
"type": {
|
|
136
|
+
"type": "String"
|
|
137
|
+
},
|
|
138
|
+
"optional": true
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
"PtlMessage/ReqMessage": {
|
|
143
|
+
"type": "Interface",
|
|
144
|
+
"extends": [
|
|
145
|
+
{
|
|
146
|
+
"id": 0,
|
|
147
|
+
"type": {
|
|
148
|
+
"type": "Reference",
|
|
149
|
+
"target": "base/BaseRequest"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"properties": [
|
|
154
|
+
{
|
|
155
|
+
"id": 0,
|
|
156
|
+
"name": "UserInfo",
|
|
157
|
+
"type": {
|
|
158
|
+
"type": "Reference",
|
|
159
|
+
"target": "IMassage/UserInfo"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"id": 1,
|
|
164
|
+
"name": "ClientInfo",
|
|
165
|
+
"type": {
|
|
166
|
+
"type": "Reference",
|
|
167
|
+
"target": "IMassage/ClientInfo"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"id": 2,
|
|
172
|
+
"name": "Message",
|
|
173
|
+
"type": {
|
|
174
|
+
"type": "Reference",
|
|
175
|
+
"target": "IMassage/Message"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
"base/BaseRequest": {
|
|
181
|
+
"type": "Interface",
|
|
182
|
+
"properties": [
|
|
183
|
+
{
|
|
184
|
+
"id": 0,
|
|
185
|
+
"name": "_token",
|
|
186
|
+
"type": {
|
|
187
|
+
"type": "String"
|
|
188
|
+
},
|
|
189
|
+
"optional": true
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"id": 1,
|
|
193
|
+
"name": "_player",
|
|
194
|
+
"type": {
|
|
195
|
+
"type": "Any"
|
|
196
|
+
},
|
|
197
|
+
"optional": true
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
"IMassage/UserInfo": {
|
|
202
|
+
"type": "Interface",
|
|
203
|
+
"properties": [
|
|
204
|
+
{
|
|
205
|
+
"id": 0,
|
|
206
|
+
"name": "id",
|
|
207
|
+
"type": {
|
|
208
|
+
"type": "String"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"id": 1,
|
|
213
|
+
"name": "name",
|
|
214
|
+
"type": {
|
|
215
|
+
"type": "String"
|
|
216
|
+
},
|
|
217
|
+
"optional": true
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"id": 2,
|
|
221
|
+
"name": "avatar",
|
|
222
|
+
"type": {
|
|
223
|
+
"type": "String"
|
|
224
|
+
},
|
|
225
|
+
"optional": true
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"id": 3,
|
|
229
|
+
"name": "isBot",
|
|
230
|
+
"type": {
|
|
231
|
+
"type": "Boolean"
|
|
232
|
+
},
|
|
233
|
+
"optional": true
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
"IMassage/ClientInfo": {
|
|
238
|
+
"type": "Interface",
|
|
239
|
+
"properties": [
|
|
240
|
+
{
|
|
241
|
+
"id": 0,
|
|
242
|
+
"name": "id",
|
|
243
|
+
"type": {
|
|
244
|
+
"type": "String"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"id": 1,
|
|
249
|
+
"name": "platform",
|
|
250
|
+
"type": {
|
|
251
|
+
"type": "String"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"id": 2,
|
|
256
|
+
"name": "name",
|
|
257
|
+
"type": {
|
|
258
|
+
"type": "String"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"id": 3,
|
|
263
|
+
"name": "avatar",
|
|
264
|
+
"type": {
|
|
265
|
+
"type": "String"
|
|
266
|
+
},
|
|
267
|
+
"optional": true
|
|
268
|
+
}
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
"PtlMessage/ResMessage": {
|
|
272
|
+
"type": "Interface",
|
|
273
|
+
"extends": [
|
|
274
|
+
{
|
|
275
|
+
"id": 1,
|
|
276
|
+
"type": {
|
|
277
|
+
"type": "Reference",
|
|
278
|
+
"target": "MsgMessage/MsgMessage"
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"id": 0,
|
|
283
|
+
"type": {
|
|
284
|
+
"type": "Reference",
|
|
285
|
+
"target": "base/BaseResponse"
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
]
|
|
289
|
+
},
|
|
290
|
+
"base/BaseResponse": {
|
|
291
|
+
"type": "Interface",
|
|
292
|
+
"properties": [
|
|
293
|
+
{
|
|
294
|
+
"id": 0,
|
|
295
|
+
"name": "_token",
|
|
296
|
+
"type": {
|
|
297
|
+
"type": "String"
|
|
298
|
+
},
|
|
299
|
+
"optional": true
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
},
|
|
303
|
+
"PtlTest/ReqTest": {
|
|
304
|
+
"type": "Interface",
|
|
305
|
+
"extends": [
|
|
306
|
+
{
|
|
307
|
+
"id": 0,
|
|
308
|
+
"type": {
|
|
309
|
+
"type": "Reference",
|
|
310
|
+
"target": "base/BaseRequest"
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
]
|
|
314
|
+
},
|
|
315
|
+
"PtlTest/ResTest": {
|
|
316
|
+
"type": "Interface",
|
|
317
|
+
"extends": [
|
|
318
|
+
{
|
|
319
|
+
"id": 0,
|
|
320
|
+
"type": {
|
|
321
|
+
"type": "Reference",
|
|
322
|
+
"target": "base/BaseResponse"
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
]
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "koishi-plugin-dew-bot",
|
|
3
|
+
"description": "达尔文进化岛",
|
|
4
|
+
"preview": true,
|
|
5
|
+
"version": "1.0.188",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"typings": "lib/index.d.ts",
|
|
8
|
+
"contributors": [
|
|
9
|
+
"楚轩<3245000000@qq.com>"
|
|
10
|
+
],
|
|
11
|
+
"files": [
|
|
12
|
+
"lib",
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"prepub": "npm version patch",
|
|
18
|
+
"checkorg": "npm config set registry https://registry.npmjs.org/",
|
|
19
|
+
"pub": "npm run prepub && npm publish",
|
|
20
|
+
"copy-js": "robocopy ./src/html/res lib/html/res /S /E /COPYALL /R:0 /W:0 && echo res 文件已复制"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"chatbot",
|
|
24
|
+
"koishi",
|
|
25
|
+
"plugin"
|
|
26
|
+
],
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@koishijs/client": "^5.30.7",
|
|
29
|
+
"tsrpc": "^3.4.17"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"@koishijs/plugin-console": "^5.30.7",
|
|
33
|
+
"koishi": "^4.18.7",
|
|
34
|
+
"tsrpc": "^3.4.17"
|
|
35
|
+
}
|
|
36
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# koishi-plugin-dew-bot
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/koishi-plugin-dew-bot)
|
|
4
|
+
|
|
5
|
+
[功能进度一览](https://docs.qq.com/mind/DWkRkWEtpT1FPQ0tT?subId=BB08J2&mode=mind)
|
|
6
|
+
|
|
7
|
+
[服务器源码](https://gitee.com/ChuXuanD30/bot_server_v6)
|
|
8
|
+
|
|
9
|
+
[web端源码](https://gitee.com/ChuXuanD30/bot_server_backend)
|