@sjtdev/koishi-plugin-dota2tracker 2.3.3 → 2.3.4
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/LICENSE +674 -0
- package/README.md +3 -1
- package/changelog.md +6 -0
- package/lib/index.js +111 -78
- package/lib/queries/RequestMatchDataAnalysis.graphql +5 -5
- package/package.json +7 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,674 @@
|
|
|
1
|
+
GNU GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
+
of this license document, but changing it is not allowed.
|
|
7
|
+
|
|
8
|
+
Preamble
|
|
9
|
+
|
|
10
|
+
The GNU General Public License is a free, copyleft license for
|
|
11
|
+
software and other kinds of works.
|
|
12
|
+
|
|
13
|
+
The licenses for most software and other practical works are designed
|
|
14
|
+
to take away your freedom to share and change the works. By contrast,
|
|
15
|
+
the GNU General Public License is intended to guarantee your freedom to
|
|
16
|
+
share and change all versions of a program--to make sure it remains free
|
|
17
|
+
software for all its users. We, the Free Software Foundation, use the
|
|
18
|
+
GNU General Public License for most of our software; it applies also to
|
|
19
|
+
any other work released this way by its authors. You can apply it to
|
|
20
|
+
your programs, too.
|
|
21
|
+
|
|
22
|
+
When we speak of free software, we are referring to freedom, not
|
|
23
|
+
price. Our General Public Licenses are designed to make sure that you
|
|
24
|
+
have the freedom to distribute copies of free software (and charge for
|
|
25
|
+
them if you wish), that you receive source code or can get it if you
|
|
26
|
+
want it, that you can change the software or use pieces of it in new
|
|
27
|
+
free programs, and that you know you can do these things.
|
|
28
|
+
|
|
29
|
+
To protect your rights, we need to prevent others from denying you
|
|
30
|
+
these rights or asking you to surrender the rights. Therefore, you have
|
|
31
|
+
certain responsibilities if you distribute copies of the software, or if
|
|
32
|
+
you modify it: responsibilities to respect the freedom of others.
|
|
33
|
+
|
|
34
|
+
For example, if you distribute copies of such a program, whether
|
|
35
|
+
gratis or for a fee, you must pass on to the recipients the same
|
|
36
|
+
freedoms that you received. You must make sure that they, too, receive
|
|
37
|
+
or can get the source code. And you must show them these terms so they
|
|
38
|
+
know their rights.
|
|
39
|
+
|
|
40
|
+
Developers that use the GNU GPL protect your rights with two steps:
|
|
41
|
+
(1) assert copyright on the software, and (2) offer you this License
|
|
42
|
+
giving you legal permission to copy, distribute and/or modify it.
|
|
43
|
+
|
|
44
|
+
For the developers' and authors' protection, the GPL clearly explains
|
|
45
|
+
that there is no warranty for this free software. For both users' and
|
|
46
|
+
authors' sake, the GPL requires that modified versions be marked as
|
|
47
|
+
changed, so that their problems will not be attributed erroneously to
|
|
48
|
+
authors of previous versions.
|
|
49
|
+
|
|
50
|
+
Some devices are designed to deny users access to install or run
|
|
51
|
+
modified versions of the software inside them, although the manufacturer
|
|
52
|
+
can do so. This is fundamentally incompatible with the aim of
|
|
53
|
+
protecting users' freedom to change the software. The systematic
|
|
54
|
+
pattern of such abuse occurs in the area of products for individuals to
|
|
55
|
+
use, which is precisely where it is most unacceptable. Therefore, we
|
|
56
|
+
have designed this version of the GPL to prohibit the practice for those
|
|
57
|
+
products. If such problems arise substantially in other domains, we
|
|
58
|
+
stand ready to extend this provision to those domains in future versions
|
|
59
|
+
of the GPL, as needed to protect the freedom of users.
|
|
60
|
+
|
|
61
|
+
Finally, every program is threatened constantly by software patents.
|
|
62
|
+
States should not allow patents to restrict development and use of
|
|
63
|
+
software on general-purpose computers, but in those that do, we wish to
|
|
64
|
+
avoid the special danger that patents applied to a free program could
|
|
65
|
+
make it effectively proprietary. To prevent this, the GPL assures that
|
|
66
|
+
patents cannot be used to render the program non-free.
|
|
67
|
+
|
|
68
|
+
The precise terms and conditions for copying, distribution and
|
|
69
|
+
modification follow.
|
|
70
|
+
|
|
71
|
+
TERMS AND CONDITIONS
|
|
72
|
+
|
|
73
|
+
0. Definitions.
|
|
74
|
+
|
|
75
|
+
"This License" refers to version 3 of the GNU General Public License.
|
|
76
|
+
|
|
77
|
+
"Copyright" also means copyright-like laws that apply to other kinds of
|
|
78
|
+
works, such as semiconductor masks.
|
|
79
|
+
|
|
80
|
+
"The Program" refers to any copyrightable work licensed under this
|
|
81
|
+
License. Each licensee is addressed as "you". "Licensees" and
|
|
82
|
+
"recipients" may be individuals or organizations.
|
|
83
|
+
|
|
84
|
+
To "modify" a work means to copy from or adapt all or part of the work
|
|
85
|
+
in a fashion requiring copyright permission, other than the making of an
|
|
86
|
+
exact copy. The resulting work is called a "modified version" of the
|
|
87
|
+
earlier work or a work "based on" the earlier work.
|
|
88
|
+
|
|
89
|
+
A "covered work" means either the unmodified Program or a work based
|
|
90
|
+
on the Program.
|
|
91
|
+
|
|
92
|
+
To "propagate" a work means to do anything with it that, without
|
|
93
|
+
permission, would make you directly or secondarily liable for
|
|
94
|
+
infringement under applicable copyright law, except executing it on a
|
|
95
|
+
computer or modifying a private copy. Propagation includes copying,
|
|
96
|
+
distribution (with or without modification), making available to the
|
|
97
|
+
public, and in some countries other activities as well.
|
|
98
|
+
|
|
99
|
+
To "convey" a work means any kind of propagation that enables other
|
|
100
|
+
parties to make or receive copies. Mere interaction with a user through
|
|
101
|
+
a computer network, with no transfer of a copy, is not conveying.
|
|
102
|
+
|
|
103
|
+
An interactive user interface displays "Appropriate Legal Notices"
|
|
104
|
+
to the extent that it includes a convenient and prominently visible
|
|
105
|
+
feature that (1) displays an appropriate copyright notice, and (2)
|
|
106
|
+
tells the user that there is no warranty for the work (except to the
|
|
107
|
+
extent that warranties are provided), that licensees may convey the
|
|
108
|
+
work under this License, and how to view a copy of this License. If
|
|
109
|
+
the interface presents a list of user commands or options, such as a
|
|
110
|
+
menu, a prominent item in the list meets this criterion.
|
|
111
|
+
|
|
112
|
+
1. Source Code.
|
|
113
|
+
|
|
114
|
+
The "source code" for a work means the preferred form of the work
|
|
115
|
+
for making modifications to it. "Object code" means any non-source
|
|
116
|
+
form of a work.
|
|
117
|
+
|
|
118
|
+
A "Standard Interface" means an interface that either is an official
|
|
119
|
+
standard defined by a recognized standards body, or, in the case of
|
|
120
|
+
interfaces specified for a particular programming language, one that
|
|
121
|
+
is widely used among developers working in that language.
|
|
122
|
+
|
|
123
|
+
The "System Libraries" of an executable work include anything, other
|
|
124
|
+
than the work as a whole, that (a) is included in the normal form of
|
|
125
|
+
packaging a Major Component, but which is not part of that Major
|
|
126
|
+
Component, and (b) serves only to enable use of the work with that
|
|
127
|
+
Major Component, or to implement a Standard Interface for which an
|
|
128
|
+
implementation is available to the public in source code form. A
|
|
129
|
+
"Major Component", in this context, means a major essential component
|
|
130
|
+
(kernel, window system, and so on) of the specific operating system
|
|
131
|
+
(if any) on which the executable work runs, or a compiler used to
|
|
132
|
+
produce the work, or an object code interpreter used to run it.
|
|
133
|
+
|
|
134
|
+
The "Corresponding Source" for a work in object code form means all
|
|
135
|
+
the source code needed to generate, install, and (for an executable
|
|
136
|
+
work) run the object code and to modify the work, including scripts to
|
|
137
|
+
control those activities. However, it does not include the work's
|
|
138
|
+
System Libraries, or general-purpose tools or generally available free
|
|
139
|
+
programs which are used unmodified in performing those activities but
|
|
140
|
+
which are not part of the work. For example, Corresponding Source
|
|
141
|
+
includes interface definition files associated with source files for
|
|
142
|
+
the work, and the source code for shared libraries and dynamically
|
|
143
|
+
linked subprograms that the work is specifically designed to require,
|
|
144
|
+
such as by intimate data communication or control flow between those
|
|
145
|
+
subprograms and other parts of the work.
|
|
146
|
+
|
|
147
|
+
The Corresponding Source need not include anything that users
|
|
148
|
+
can regenerate automatically from other parts of the Corresponding
|
|
149
|
+
Source.
|
|
150
|
+
|
|
151
|
+
The Corresponding Source for a work in source code form is that
|
|
152
|
+
same work.
|
|
153
|
+
|
|
154
|
+
2. Basic Permissions.
|
|
155
|
+
|
|
156
|
+
All rights granted under this License are granted for the term of
|
|
157
|
+
copyright on the Program, and are irrevocable provided the stated
|
|
158
|
+
conditions are met. This License explicitly affirms your unlimited
|
|
159
|
+
permission to run the unmodified Program. The output from running a
|
|
160
|
+
covered work is covered by this License only if the output, given its
|
|
161
|
+
content, constitutes a covered work. This License acknowledges your
|
|
162
|
+
rights of fair use or other equivalent, as provided by copyright law.
|
|
163
|
+
|
|
164
|
+
You may make, run and propagate covered works that you do not
|
|
165
|
+
convey, without conditions so long as your license otherwise remains
|
|
166
|
+
in force. You may convey covered works to others for the sole purpose
|
|
167
|
+
of having them make modifications exclusively for you, or provide you
|
|
168
|
+
with facilities for running those works, provided that you comply with
|
|
169
|
+
the terms of this License in conveying all material for which you do
|
|
170
|
+
not control copyright. Those thus making or running the covered works
|
|
171
|
+
for you must do so exclusively on your behalf, under your direction
|
|
172
|
+
and control, on terms that prohibit them from making any copies of
|
|
173
|
+
your copyrighted material outside their relationship with you.
|
|
174
|
+
|
|
175
|
+
Conveying under any other circumstances is permitted solely under
|
|
176
|
+
the conditions stated below. Sublicensing is not allowed; section 10
|
|
177
|
+
makes it unnecessary.
|
|
178
|
+
|
|
179
|
+
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
|
180
|
+
|
|
181
|
+
No covered work shall be deemed part of an effective technological
|
|
182
|
+
measure under any applicable law fulfilling obligations under article
|
|
183
|
+
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
|
184
|
+
similar laws prohibiting or restricting circumvention of such
|
|
185
|
+
measures.
|
|
186
|
+
|
|
187
|
+
When you convey a covered work, you waive any legal power to forbid
|
|
188
|
+
circumvention of technological measures to the extent such circumvention
|
|
189
|
+
is effected by exercising rights under this License with respect to
|
|
190
|
+
the covered work, and you disclaim any intention to limit operation or
|
|
191
|
+
modification of the work as a means of enforcing, against the work's
|
|
192
|
+
users, your or third parties' legal rights to forbid circumvention of
|
|
193
|
+
technological measures.
|
|
194
|
+
|
|
195
|
+
4. Conveying Verbatim Copies.
|
|
196
|
+
|
|
197
|
+
You may convey verbatim copies of the Program's source code as you
|
|
198
|
+
receive it, in any medium, provided that you conspicuously and
|
|
199
|
+
appropriately publish on each copy an appropriate copyright notice;
|
|
200
|
+
keep intact all notices stating that this License and any
|
|
201
|
+
non-permissive terms added in accord with section 7 apply to the code;
|
|
202
|
+
keep intact all notices of the absence of any warranty; and give all
|
|
203
|
+
recipients a copy of this License along with the Program.
|
|
204
|
+
|
|
205
|
+
You may charge any price or no price for each copy that you convey,
|
|
206
|
+
and you may offer support or warranty protection for a fee.
|
|
207
|
+
|
|
208
|
+
5. Conveying Modified Source Versions.
|
|
209
|
+
|
|
210
|
+
You may convey a work based on the Program, or the modifications to
|
|
211
|
+
produce it from the Program, in the form of source code under the
|
|
212
|
+
terms of section 4, provided that you also meet all of these conditions:
|
|
213
|
+
|
|
214
|
+
a) The work must carry prominent notices stating that you modified
|
|
215
|
+
it, and giving a relevant date.
|
|
216
|
+
|
|
217
|
+
b) The work must carry prominent notices stating that it is
|
|
218
|
+
released under this License and any conditions added under section
|
|
219
|
+
7. This requirement modifies the requirement in section 4 to
|
|
220
|
+
"keep intact all notices".
|
|
221
|
+
|
|
222
|
+
c) You must license the entire work, as a whole, under this
|
|
223
|
+
License to anyone who comes into possession of a copy. This
|
|
224
|
+
License will therefore apply, along with any applicable section 7
|
|
225
|
+
additional terms, to the whole of the work, and all its parts,
|
|
226
|
+
regardless of how they are packaged. This License gives no
|
|
227
|
+
permission to license the work in any other way, but it does not
|
|
228
|
+
invalidate such permission if you have separately received it.
|
|
229
|
+
|
|
230
|
+
d) If the work has interactive user interfaces, each must display
|
|
231
|
+
Appropriate Legal Notices; however, if the Program has interactive
|
|
232
|
+
interfaces that do not display Appropriate Legal Notices, your
|
|
233
|
+
work need not make them do so.
|
|
234
|
+
|
|
235
|
+
A compilation of a covered work with other separate and independent
|
|
236
|
+
works, which are not by their nature extensions of the covered work,
|
|
237
|
+
and which are not combined with it such as to form a larger program,
|
|
238
|
+
in or on a volume of a storage or distribution medium, is called an
|
|
239
|
+
"aggregate" if the compilation and its resulting copyright are not
|
|
240
|
+
used to limit the access or legal rights of the compilation's users
|
|
241
|
+
beyond what the individual works permit. Inclusion of a covered work
|
|
242
|
+
in an aggregate does not cause this License to apply to the other
|
|
243
|
+
parts of the aggregate.
|
|
244
|
+
|
|
245
|
+
6. Conveying Non-Source Forms.
|
|
246
|
+
|
|
247
|
+
You may convey a covered work in object code form under the terms
|
|
248
|
+
of sections 4 and 5, provided that you also convey the
|
|
249
|
+
machine-readable Corresponding Source under the terms of this License,
|
|
250
|
+
in one of these ways:
|
|
251
|
+
|
|
252
|
+
a) Convey the object code in, or embodied in, a physical product
|
|
253
|
+
(including a physical distribution medium), accompanied by the
|
|
254
|
+
Corresponding Source fixed on a durable physical medium
|
|
255
|
+
customarily used for software interchange.
|
|
256
|
+
|
|
257
|
+
b) Convey the object code in, or embodied in, a physical product
|
|
258
|
+
(including a physical distribution medium), accompanied by a
|
|
259
|
+
written offer, valid for at least three years and valid for as
|
|
260
|
+
long as you offer spare parts or customer support for that product
|
|
261
|
+
model, to give anyone who possesses the object code either (1) a
|
|
262
|
+
copy of the Corresponding Source for all the software in the
|
|
263
|
+
product that is covered by this License, on a durable physical
|
|
264
|
+
medium customarily used for software interchange, for a price no
|
|
265
|
+
more than your reasonable cost of physically performing this
|
|
266
|
+
conveying of source, or (2) access to copy the
|
|
267
|
+
Corresponding Source from a network server at no charge.
|
|
268
|
+
|
|
269
|
+
c) Convey individual copies of the object code with a copy of the
|
|
270
|
+
written offer to provide the Corresponding Source. This
|
|
271
|
+
alternative is allowed only occasionally and noncommercially, and
|
|
272
|
+
only if you received the object code with such an offer, in accord
|
|
273
|
+
with subsection 6b.
|
|
274
|
+
|
|
275
|
+
d) Convey the object code by offering access from a designated
|
|
276
|
+
place (gratis or for a charge), and offer equivalent access to the
|
|
277
|
+
Corresponding Source in the same way through the same place at no
|
|
278
|
+
further charge. You need not require recipients to copy the
|
|
279
|
+
Corresponding Source along with the object code. If the place to
|
|
280
|
+
copy the object code is a network server, the Corresponding Source
|
|
281
|
+
may be on a different server (operated by you or a third party)
|
|
282
|
+
that supports equivalent copying facilities, provided you maintain
|
|
283
|
+
clear directions next to the object code saying where to find the
|
|
284
|
+
Corresponding Source. Regardless of what server hosts the
|
|
285
|
+
Corresponding Source, you remain obligated to ensure that it is
|
|
286
|
+
available for as long as needed to satisfy these requirements.
|
|
287
|
+
|
|
288
|
+
e) Convey the object code using peer-to-peer transmission, provided
|
|
289
|
+
you inform other peers where the object code and Corresponding
|
|
290
|
+
Source of the work are being offered to the general public at no
|
|
291
|
+
charge under subsection 6d.
|
|
292
|
+
|
|
293
|
+
A separable portion of the object code, whose source code is excluded
|
|
294
|
+
from the Corresponding Source as a System Library, need not be
|
|
295
|
+
included in conveying the object code work.
|
|
296
|
+
|
|
297
|
+
A "User Product" is either (1) a "consumer product", which means any
|
|
298
|
+
tangible personal property which is normally used for personal, family,
|
|
299
|
+
or household purposes, or (2) anything designed or sold for incorporation
|
|
300
|
+
into a dwelling. In determining whether a product is a consumer product,
|
|
301
|
+
doubtful cases shall be resolved in favor of coverage. For a particular
|
|
302
|
+
product received by a particular user, "normally used" refers to a
|
|
303
|
+
typical or common use of that class of product, regardless of the status
|
|
304
|
+
of the particular user or of the way in which the particular user
|
|
305
|
+
actually uses, or expects or is expected to use, the product. A product
|
|
306
|
+
is a consumer product regardless of whether the product has substantial
|
|
307
|
+
commercial, industrial or non-consumer uses, unless such uses represent
|
|
308
|
+
the only significant mode of use of the product.
|
|
309
|
+
|
|
310
|
+
"Installation Information" for a User Product means any methods,
|
|
311
|
+
procedures, authorization keys, or other information required to install
|
|
312
|
+
and execute modified versions of a covered work in that User Product from
|
|
313
|
+
a modified version of its Corresponding Source. The information must
|
|
314
|
+
suffice to ensure that the continued functioning of the modified object
|
|
315
|
+
code is in no case prevented or interfered with solely because
|
|
316
|
+
modification has been made.
|
|
317
|
+
|
|
318
|
+
If you convey an object code work under this section in, or with, or
|
|
319
|
+
specifically for use in, a User Product, and the conveying occurs as
|
|
320
|
+
part of a transaction in which the right of possession and use of the
|
|
321
|
+
User Product is transferred to the recipient in perpetuity or for a
|
|
322
|
+
fixed term (regardless of how the transaction is characterized), the
|
|
323
|
+
Corresponding Source conveyed under this section must be accompanied
|
|
324
|
+
by the Installation Information. But this requirement does not apply
|
|
325
|
+
if neither you nor any third party retains the ability to install
|
|
326
|
+
modified object code on the User Product (for example, the work has
|
|
327
|
+
been installed in ROM).
|
|
328
|
+
|
|
329
|
+
The requirement to provide Installation Information does not include a
|
|
330
|
+
requirement to continue to provide support service, warranty, or updates
|
|
331
|
+
for a work that has been modified or installed by the recipient, or for
|
|
332
|
+
the User Product in which it has been modified or installed. Access to a
|
|
333
|
+
network may be denied when the modification itself materially and
|
|
334
|
+
adversely affects the operation of the network or violates the rules and
|
|
335
|
+
protocols for communication across the network.
|
|
336
|
+
|
|
337
|
+
Corresponding Source conveyed, and Installation Information provided,
|
|
338
|
+
in accord with this section must be in a format that is publicly
|
|
339
|
+
documented (and with an implementation available to the public in
|
|
340
|
+
source code form), and must require no special password or key for
|
|
341
|
+
unpacking, reading or copying.
|
|
342
|
+
|
|
343
|
+
7. Additional Terms.
|
|
344
|
+
|
|
345
|
+
"Additional permissions" are terms that supplement the terms of this
|
|
346
|
+
License by making exceptions from one or more of its conditions.
|
|
347
|
+
Additional permissions that are applicable to the entire Program shall
|
|
348
|
+
be treated as though they were included in this License, to the extent
|
|
349
|
+
that they are valid under applicable law. If additional permissions
|
|
350
|
+
apply only to part of the Program, that part may be used separately
|
|
351
|
+
under those permissions, but the entire Program remains governed by
|
|
352
|
+
this License without regard to the additional permissions.
|
|
353
|
+
|
|
354
|
+
When you convey a copy of a covered work, you may at your option
|
|
355
|
+
remove any additional permissions from that copy, or from any part of
|
|
356
|
+
it. (Additional permissions may be written to require their own
|
|
357
|
+
removal in certain cases when you modify the work.) You may place
|
|
358
|
+
additional permissions on material, added by you to a covered work,
|
|
359
|
+
for which you have or can give appropriate copyright permission.
|
|
360
|
+
|
|
361
|
+
Notwithstanding any other provision of this License, for material you
|
|
362
|
+
add to a covered work, you may (if authorized by the copyright holders of
|
|
363
|
+
that material) supplement the terms of this License with terms:
|
|
364
|
+
|
|
365
|
+
a) Disclaiming warranty or limiting liability differently from the
|
|
366
|
+
terms of sections 15 and 16 of this License; or
|
|
367
|
+
|
|
368
|
+
b) Requiring preservation of specified reasonable legal notices or
|
|
369
|
+
author attributions in that material or in the Appropriate Legal
|
|
370
|
+
Notices displayed by works containing it; or
|
|
371
|
+
|
|
372
|
+
c) Prohibiting misrepresentation of the origin of that material, or
|
|
373
|
+
requiring that modified versions of such material be marked in
|
|
374
|
+
reasonable ways as different from the original version; or
|
|
375
|
+
|
|
376
|
+
d) Limiting the use for publicity purposes of names of licensors or
|
|
377
|
+
authors of the material; or
|
|
378
|
+
|
|
379
|
+
e) Declining to grant rights under trademark law for use of some
|
|
380
|
+
trade names, trademarks, or service marks; or
|
|
381
|
+
|
|
382
|
+
f) Requiring indemnification of licensors and authors of that
|
|
383
|
+
material by anyone who conveys the material (or modified versions of
|
|
384
|
+
it) with contractual assumptions of liability to the recipient, for
|
|
385
|
+
any liability that these contractual assumptions directly impose on
|
|
386
|
+
those licensors and authors.
|
|
387
|
+
|
|
388
|
+
All other non-permissive additional terms are considered "further
|
|
389
|
+
restrictions" within the meaning of section 10. If the Program as you
|
|
390
|
+
received it, or any part of it, contains a notice stating that it is
|
|
391
|
+
governed by this License along with a term that is a further
|
|
392
|
+
restriction, you may remove that term. If a license document contains
|
|
393
|
+
a further restriction but permits relicensing or conveying under this
|
|
394
|
+
License, you may add to a covered work material governed by the terms
|
|
395
|
+
of that license document, provided that the further restriction does
|
|
396
|
+
not survive such relicensing or conveying.
|
|
397
|
+
|
|
398
|
+
If you add terms to a covered work in accord with this section, you
|
|
399
|
+
must place, in the relevant source files, a statement of the
|
|
400
|
+
additional terms that apply to those files, or a notice indicating
|
|
401
|
+
where to find the applicable terms.
|
|
402
|
+
|
|
403
|
+
Additional terms, permissive or non-permissive, may be stated in the
|
|
404
|
+
form of a separately written license, or stated as exceptions;
|
|
405
|
+
the above requirements apply either way.
|
|
406
|
+
|
|
407
|
+
8. Termination.
|
|
408
|
+
|
|
409
|
+
You may not propagate or modify a covered work except as expressly
|
|
410
|
+
provided under this License. Any attempt otherwise to propagate or
|
|
411
|
+
modify it is void, and will automatically terminate your rights under
|
|
412
|
+
this License (including any patent licenses granted under the third
|
|
413
|
+
paragraph of section 11).
|
|
414
|
+
|
|
415
|
+
However, if you cease all violation of this License, then your
|
|
416
|
+
license from a particular copyright holder is reinstated (a)
|
|
417
|
+
provisionally, unless and until the copyright holder explicitly and
|
|
418
|
+
finally terminates your license, and (b) permanently, if the copyright
|
|
419
|
+
holder fails to notify you of the violation by some reasonable means
|
|
420
|
+
prior to 60 days after the cessation.
|
|
421
|
+
|
|
422
|
+
Moreover, your license from a particular copyright holder is
|
|
423
|
+
reinstated permanently if the copyright holder notifies you of the
|
|
424
|
+
violation by some reasonable means, this is the first time you have
|
|
425
|
+
received notice of violation of this License (for any work) from that
|
|
426
|
+
copyright holder, and you cure the violation prior to 30 days after
|
|
427
|
+
your receipt of the notice.
|
|
428
|
+
|
|
429
|
+
Termination of your rights under this section does not terminate the
|
|
430
|
+
licenses of parties who have received copies or rights from you under
|
|
431
|
+
this License. If your rights have been terminated and not permanently
|
|
432
|
+
reinstated, you do not qualify to receive new licenses for the same
|
|
433
|
+
material under section 10.
|
|
434
|
+
|
|
435
|
+
9. Acceptance Not Required for Having Copies.
|
|
436
|
+
|
|
437
|
+
You are not required to accept this License in order to receive or
|
|
438
|
+
run a copy of the Program. Ancillary propagation of a covered work
|
|
439
|
+
occurring solely as a consequence of using peer-to-peer transmission
|
|
440
|
+
to receive a copy likewise does not require acceptance. However,
|
|
441
|
+
nothing other than this License grants you permission to propagate or
|
|
442
|
+
modify any covered work. These actions infringe copyright if you do
|
|
443
|
+
not accept this License. Therefore, by modifying or propagating a
|
|
444
|
+
covered work, you indicate your acceptance of this License to do so.
|
|
445
|
+
|
|
446
|
+
10. Automatic Licensing of Downstream Recipients.
|
|
447
|
+
|
|
448
|
+
Each time you convey a covered work, the recipient automatically
|
|
449
|
+
receives a license from the original licensors, to run, modify and
|
|
450
|
+
propagate that work, subject to this License. You are not responsible
|
|
451
|
+
for enforcing compliance by third parties with this License.
|
|
452
|
+
|
|
453
|
+
An "entity transaction" is a transaction transferring control of an
|
|
454
|
+
organization, or substantially all assets of one, or subdividing an
|
|
455
|
+
organization, or merging organizations. If propagation of a covered
|
|
456
|
+
work results from an entity transaction, each party to that
|
|
457
|
+
transaction who receives a copy of the work also receives whatever
|
|
458
|
+
licenses to the work the party's predecessor in interest had or could
|
|
459
|
+
give under the previous paragraph, plus a right to possession of the
|
|
460
|
+
Corresponding Source of the work from the predecessor in interest, if
|
|
461
|
+
the predecessor has it or can get it with reasonable efforts.
|
|
462
|
+
|
|
463
|
+
You may not impose any further restrictions on the exercise of the
|
|
464
|
+
rights granted or affirmed under this License. For example, you may
|
|
465
|
+
not impose a license fee, royalty, or other charge for exercise of
|
|
466
|
+
rights granted under this License, and you may not initiate litigation
|
|
467
|
+
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
|
468
|
+
any patent claim is infringed by making, using, selling, offering for
|
|
469
|
+
sale, or importing the Program or any portion of it.
|
|
470
|
+
|
|
471
|
+
11. Patents.
|
|
472
|
+
|
|
473
|
+
A "contributor" is a copyright holder who authorizes use under this
|
|
474
|
+
License of the Program or a work on which the Program is based. The
|
|
475
|
+
work thus licensed is called the contributor's "contributor version".
|
|
476
|
+
|
|
477
|
+
A contributor's "essential patent claims" are all patent claims
|
|
478
|
+
owned or controlled by the contributor, whether already acquired or
|
|
479
|
+
hereafter acquired, that would be infringed by some manner, permitted
|
|
480
|
+
by this License, of making, using, or selling its contributor version,
|
|
481
|
+
but do not include claims that would be infringed only as a
|
|
482
|
+
consequence of further modification of the contributor version. For
|
|
483
|
+
purposes of this definition, "control" includes the right to grant
|
|
484
|
+
patent sublicenses in a manner consistent with the requirements of
|
|
485
|
+
this License.
|
|
486
|
+
|
|
487
|
+
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
|
488
|
+
patent license under the contributor's essential patent claims, to
|
|
489
|
+
make, use, sell, offer for sale, import and otherwise run, modify and
|
|
490
|
+
propagate the contents of its contributor version.
|
|
491
|
+
|
|
492
|
+
In the following three paragraphs, a "patent license" is any express
|
|
493
|
+
agreement or commitment, however denominated, not to enforce a patent
|
|
494
|
+
(such as an express permission to practice a patent or covenant not to
|
|
495
|
+
sue for patent infringement). To "grant" such a patent license to a
|
|
496
|
+
party means to make such an agreement or commitment not to enforce a
|
|
497
|
+
patent against the party.
|
|
498
|
+
|
|
499
|
+
If you convey a covered work, knowingly relying on a patent license,
|
|
500
|
+
and the Corresponding Source of the work is not available for anyone
|
|
501
|
+
to copy, free of charge and under the terms of this License, through a
|
|
502
|
+
publicly available network server or other readily accessible means,
|
|
503
|
+
then you must either (1) cause the Corresponding Source to be so
|
|
504
|
+
available, or (2) arrange to deprive yourself of the benefit of the
|
|
505
|
+
patent license for this particular work, or (3) arrange, in a manner
|
|
506
|
+
consistent with the requirements of this License, to extend the patent
|
|
507
|
+
license to downstream recipients. "Knowingly relying" means you have
|
|
508
|
+
actual knowledge that, but for the patent license, your conveying the
|
|
509
|
+
covered work in a country, or your recipient's use of the covered work
|
|
510
|
+
in a country, would infringe one or more identifiable patents in that
|
|
511
|
+
country that you have reason to believe are valid.
|
|
512
|
+
|
|
513
|
+
If, pursuant to or in connection with a single transaction or
|
|
514
|
+
arrangement, you convey, or propagate by procuring conveyance of, a
|
|
515
|
+
covered work, and grant a patent license to some of the parties
|
|
516
|
+
receiving the covered work authorizing them to use, propagate, modify
|
|
517
|
+
or convey a specific copy of the covered work, then the patent license
|
|
518
|
+
you grant is automatically extended to all recipients of the covered
|
|
519
|
+
work and works based on it.
|
|
520
|
+
|
|
521
|
+
A patent license is "discriminatory" if it does not include within
|
|
522
|
+
the scope of its coverage, prohibits the exercise of, or is
|
|
523
|
+
conditioned on the non-exercise of one or more of the rights that are
|
|
524
|
+
specifically granted under this License. You may not convey a covered
|
|
525
|
+
work if you are a party to an arrangement with a third party that is
|
|
526
|
+
in the business of distributing software, under which you make payment
|
|
527
|
+
to the third party based on the extent of your activity of conveying
|
|
528
|
+
the work, and under which the third party grants, to any of the
|
|
529
|
+
parties who would receive the covered work from you, a discriminatory
|
|
530
|
+
patent license (a) in connection with copies of the covered work
|
|
531
|
+
conveyed by you (or copies made from those copies), or (b) primarily
|
|
532
|
+
for and in connection with specific products or compilations that
|
|
533
|
+
contain the covered work, unless you entered into that arrangement,
|
|
534
|
+
or that patent license was granted, prior to 28 March 2007.
|
|
535
|
+
|
|
536
|
+
Nothing in this License shall be construed as excluding or limiting
|
|
537
|
+
any implied license or other defenses to infringement that may
|
|
538
|
+
otherwise be available to you under applicable patent law.
|
|
539
|
+
|
|
540
|
+
12. No Surrender of Others' Freedom.
|
|
541
|
+
|
|
542
|
+
If conditions are imposed on you (whether by court order, agreement or
|
|
543
|
+
otherwise) that contradict the conditions of this License, they do not
|
|
544
|
+
excuse you from the conditions of this License. If you cannot convey a
|
|
545
|
+
covered work so as to satisfy simultaneously your obligations under this
|
|
546
|
+
License and any other pertinent obligations, then as a consequence you may
|
|
547
|
+
not convey it at all. For example, if you agree to terms that obligate you
|
|
548
|
+
to collect a royalty for further conveying from those to whom you convey
|
|
549
|
+
the Program, the only way you could satisfy both those terms and this
|
|
550
|
+
License would be to refrain entirely from conveying the Program.
|
|
551
|
+
|
|
552
|
+
13. Use with the GNU Affero General Public License.
|
|
553
|
+
|
|
554
|
+
Notwithstanding any other provision of this License, you have
|
|
555
|
+
permission to link or combine any covered work with a work licensed
|
|
556
|
+
under version 3 of the GNU Affero General Public License into a single
|
|
557
|
+
combined work, and to convey the resulting work. The terms of this
|
|
558
|
+
License will continue to apply to the part which is the covered work,
|
|
559
|
+
but the special requirements of the GNU Affero General Public License,
|
|
560
|
+
section 13, concerning interaction through a network will apply to the
|
|
561
|
+
combination as such.
|
|
562
|
+
|
|
563
|
+
14. Revised Versions of this License.
|
|
564
|
+
|
|
565
|
+
The Free Software Foundation may publish revised and/or new versions of
|
|
566
|
+
the GNU General Public License from time to time. Such new versions will
|
|
567
|
+
be similar in spirit to the present version, but may differ in detail to
|
|
568
|
+
address new problems or concerns.
|
|
569
|
+
|
|
570
|
+
Each version is given a distinguishing version number. If the
|
|
571
|
+
Program specifies that a certain numbered version of the GNU General
|
|
572
|
+
Public License "or any later version" applies to it, you have the
|
|
573
|
+
option of following the terms and conditions either of that numbered
|
|
574
|
+
version or of any later version published by the Free Software
|
|
575
|
+
Foundation. If the Program does not specify a version number of the
|
|
576
|
+
GNU General Public License, you may choose any version ever published
|
|
577
|
+
by the Free Software Foundation.
|
|
578
|
+
|
|
579
|
+
If the Program specifies that a proxy can decide which future
|
|
580
|
+
versions of the GNU General Public License can be used, that proxy's
|
|
581
|
+
public statement of acceptance of a version permanently authorizes you
|
|
582
|
+
to choose that version for the Program.
|
|
583
|
+
|
|
584
|
+
Later license versions may give you additional or different
|
|
585
|
+
permissions. However, no additional obligations are imposed on any
|
|
586
|
+
author or copyright holder as a result of your choosing to follow a
|
|
587
|
+
later version.
|
|
588
|
+
|
|
589
|
+
15. Disclaimer of Warranty.
|
|
590
|
+
|
|
591
|
+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
|
592
|
+
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
|
593
|
+
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
|
594
|
+
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
|
595
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
596
|
+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
|
597
|
+
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
|
598
|
+
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
|
599
|
+
|
|
600
|
+
16. Limitation of Liability.
|
|
601
|
+
|
|
602
|
+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
603
|
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
|
604
|
+
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
|
605
|
+
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
|
606
|
+
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
|
607
|
+
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
|
608
|
+
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
|
609
|
+
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
|
610
|
+
SUCH DAMAGES.
|
|
611
|
+
|
|
612
|
+
17. Interpretation of Sections 15 and 16.
|
|
613
|
+
|
|
614
|
+
If the disclaimer of warranty and limitation of liability provided
|
|
615
|
+
above cannot be given local legal effect according to their terms,
|
|
616
|
+
reviewing courts shall apply local law that most closely approximates
|
|
617
|
+
an absolute waiver of all civil liability in connection with the
|
|
618
|
+
Program, unless a warranty or assumption of liability accompanies a
|
|
619
|
+
copy of the Program in return for a fee.
|
|
620
|
+
|
|
621
|
+
END OF TERMS AND CONDITIONS
|
|
622
|
+
|
|
623
|
+
How to Apply These Terms to Your New Programs
|
|
624
|
+
|
|
625
|
+
If you develop a new program, and you want it to be of the greatest
|
|
626
|
+
possible use to the public, the best way to achieve this is to make it
|
|
627
|
+
free software which everyone can redistribute and change under these terms.
|
|
628
|
+
|
|
629
|
+
To do so, attach the following notices to the program. It is safest
|
|
630
|
+
to attach them to the start of each source file to most effectively
|
|
631
|
+
state the exclusion of warranty; and each file should have at least
|
|
632
|
+
the "copyright" line and a pointer to where the full notice is found.
|
|
633
|
+
|
|
634
|
+
<one line to give the program's name and a brief idea of what it does.>
|
|
635
|
+
Copyright (C) <year> <name of author>
|
|
636
|
+
|
|
637
|
+
This program is free software: you can redistribute it and/or modify
|
|
638
|
+
it under the terms of the GNU General Public License as published by
|
|
639
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
640
|
+
(at your option) any later version.
|
|
641
|
+
|
|
642
|
+
This program is distributed in the hope that it will be useful,
|
|
643
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
644
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
645
|
+
GNU General Public License for more details.
|
|
646
|
+
|
|
647
|
+
You should have received a copy of the GNU General Public License
|
|
648
|
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
649
|
+
|
|
650
|
+
Also add information on how to contact you by electronic and paper mail.
|
|
651
|
+
|
|
652
|
+
If the program does terminal interaction, make it output a short
|
|
653
|
+
notice like this when it starts in an interactive mode:
|
|
654
|
+
|
|
655
|
+
<program> Copyright (C) <year> <name of author>
|
|
656
|
+
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
|
657
|
+
This is free software, and you are welcome to redistribute it
|
|
658
|
+
under certain conditions; type `show c' for details.
|
|
659
|
+
|
|
660
|
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
|
661
|
+
parts of the General Public License. Of course, your program's commands
|
|
662
|
+
might be different; for a GUI interface, you would use an "about box".
|
|
663
|
+
|
|
664
|
+
You should also get your employer (if you work as a programmer) or school,
|
|
665
|
+
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
|
666
|
+
For more information on this, and how to apply and follow the GNU GPL, see
|
|
667
|
+
<https://www.gnu.org/licenses/>.
|
|
668
|
+
|
|
669
|
+
The GNU General Public License does not permit incorporating your program
|
|
670
|
+
into proprietary programs. If your program is a subroutine library, you
|
|
671
|
+
may consider it more useful to permit linking proprietary applications with
|
|
672
|
+
the library. If this is what you want to do, use the GNU Lesser General
|
|
673
|
+
Public License instead of this License. But first, please read
|
|
674
|
+
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
package/README.md
CHANGED
|
@@ -36,4 +36,6 @@
|
|
|
36
36
|
* 也受到了 [koishi-plugin-dota2track(npm)](https://www.npmjs.com/package/koishi-plugin-dota2track) 的启发。
|
|
37
37
|
|
|
38
38
|
## 📄 许可证
|
|
39
|
-
|
|
39
|
+
|
|
40
|
+
本项目使用 [GPL-3.0](LICENSE) 许可证开源。
|
|
41
|
+
Copyright © 2023-2026 [sjtdev](https://github.com/sjtdev)
|
package/changelog.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
### [2.3.4](https://github.com/sjtdev/koishi-plugin-dota2tracker/compare/v2.3.3...v2.3.4) (2026-02-03)
|
|
4
|
+
|
|
5
|
+
### ✨ 新增功能
|
|
6
|
+
|
|
7
|
+
* **report:** 将每场比赛部分数据存至数据库中留待未来重构的日报周报功能使用 ([9f68253](https://github.com/sjtdev/koishi-plugin-dota2tracker/commit/9f68253aac43f4d99fc4477fd338e3626a0a3b06))
|
|
8
|
+
|
|
3
9
|
### [2.3.3](https://github.com/sjtdev/koishi-plugin-dota2tracker/compare/v2.3.2...v2.3.3) (2026-01-16)
|
|
4
10
|
|
|
5
11
|
### ✨ 新增功能
|
package/lib/index.js
CHANGED
|
@@ -768,7 +768,7 @@ var require_zh_CN_constants = __commonJS({
|
|
|
768
768
|
// src/locales/en-US.command.yml
|
|
769
769
|
var require_en_US_command = __commonJS({
|
|
770
770
|
"src/locales/en-US.command.yml"(exports2, module2) {
|
|
771
|
-
module2.exports = { commands: { dota2tracker: { description: 'A series of commands for Dota 2 Tracker. Use "dota2tracker -h" to see all available commands.', subscribe: { description: "Subscribes the current channel to Dota 2 match tracking.", usage: "After subscribing, players need to bind their Steam ID in this channel. The bot will then track new matches of bound players and post image-based reports upon completion of parsing by Stratz.", examples: "subscribe", messages: { subscribe_success: "Subscription successful.", subscribed: "This Channel has been subscribed, no need to subscribe again." } }, unsubscribe: { description: "Unsubscribes the current channel from match tracking.", usage: "Unsubscribes the current channel from match tracking.", examples: "unsubscribe", messages: { unsubscribe_success: "Unsubscription successful.", not_subscribed: "This Channel has not been subscribed yet, so there is no need to unsubscribe." } }, bind: { description: "Binds your SteamID to your account in the current channel.", usage: 'Bind your SteamID to your account. If the channel is subscribed, your new match data will be posted automatically. Nicknames containing spaces must be enclosed in double quotes ("").', examples: 'bind 123456789\nbind 123456789 John\nbind 123456789 "John Doe"', messages: { steam_id_invalid: "Invalid SteamID.", bind_success: "Binding successful,\nID: {userId}\nNickname: {nickName}\nSteamID: {steamId}", bind_failed: "Binding failed, {0}", reason_without_match: "Invalid SteamID or no matches found.", reason_fetch_failed: "Poor network conditions or other reasons prevented the verification of the SteamID. Please try again later.", already_binded: "You are already bound, no need to bind again.\nHere is your personal information:\nID: {userId}\nNickname: {nickName}\nSteamID: {steamId}", nick_name_too_long: "Nickname is too long, please limit it to 20 characters or less. (It can also be left blank)", is_anonymous: 'Please note: Your Steam player data is not public, and you will not be able to use the main functions of the BOT, such as "battle report tracking," "query-recent-match commands," etc.\nIf you need to make data public, please set it to public in the DOTA2 game settings.' } }, unbind: { description: "Unbinds your personal information in the current channel.", usage: "Unbind your personal information in the current channel.", examples: "unbind", messages: { unbind_success: "Unbinding successful.", not_binded: "Not bound, no need to unbind." } }, rename: { description: "Changes the nickname set during binding.", usage: 'Change the nickname set during binding. Nicknames containing spaces must be enclosed in double quotes ("").', examples: 'rename John\nrename "John Doe"', messages: { rename_success: "Rename successful, now you are called {nick_name}.", empty_input: "Please enter your nickname.", not_binded: "Please bind first, you can set a nickname during binding.", nick_name_too_long: "Nickname is too long, please limit it to 20 characters.", nick_name_same: "The input content is the same as the original nickname and does not need to be renamed." } }, "query-members": { description: "Queries the players bound in this channel and generates an info image.", usage: "Queries the players bound in this channel and generates an informational image.", examples: "query-members", messages: { title: "Guild DOTA 2 Roster (Total: {count})", table_headers: { nickname: "Nickname", winrate: "Win Rate (L10)", last_match: "Last Match" }, no_members: "No players bound in this group.", query_failed: "Failed to query group members." } }, "query-match": { description: "Query the match data of the specified match ID and generate a picture.", usage: "Query the match data of the specified match ID and generate a picture.", options: { parse: "Whether to wait for match data parsing" }, examples: "query-match 1234567890\nquery-match 1234567890 -p\nquery-match 1234567890 --parse", messages: { empty_input: "Please enter the match ID.", match_id_invalid: "Invalid match ID.", querying_match: "Searching for match details, please wait...", query_failed: "Failed to get match data.", waiting_for_parse: "Match data has not been parsed yet, a parse request has been sent to the server. The battle report will be sent once parsing is complete or times out." } }, "query-recent-match": { description: "Query the most recent match data and generate a picture.", options: { parse: "Whether to wait for match data parsing" }, usage: "Query the most recent match data of the specified player and generate a picture.\nThe parameter can be the player's SteamID or the nickname of a player bound in this group. If no parameter is provided, it will try to query the SteamID of the command caller.", examples: "query-recent-match\nquery-recent-match 123456789\nquery-recent-match John\nquery-recent-match 123456789 -p\nquery-recent-match John --parse", messages: { querying_match: "Searching for match details, please wait...", query_failed: "Failed to get the player's recent match.", is_anonymous: "Your player data is not public, and recent match data cannot be obtained.\nIf you need to make data public, please set it to public in the DOTA2 game settings." } }, "query-player": { description: "Query the player's personal information, optionally specify a hero.", options: { hero: "Query the player's usage of the specified hero (same as querying a hero, can use nickname or ID)" }, usage: "Query the personal information of the specified player and generate a picture, optionally specify a hero.\nThe parameter can be the player's SteamID or the nickname of a player bound in this group. If no parameter is provided, it will try to query the SteamID of the command caller.", examples: "query-player\nquery-player 123456789\nquery-player John\nquery-player John --hero Anti-Mage\nquery-player John -o Anti-Mage", messages: { querying_player: "Retrieving player data, please wait...", query_failed: "Failed to get player information." } }, "query-hero": { description: "Query hero skills/stats information.", options: { random: "Randomly select a hero." }, usage: "Query the hero's skill descriptions and various stats, generate a picture.\nThe parameter can be the hero's ID, name, or common nickname.", examples: "query-hero 15\nquery-hero Razor\nquery-hero -r", messages: { not_found: "Hero not found, please confirm and re-enter.", querying_hero: "Retrieving hero data, please wait...", query_failed: "Failed to get hero data.", empty_input: "Please enter a parameter." } }, "query-item": { description: "Query item information", usage: "Query item descriptions and attributes, then generate and publish an image report.\nParameters can be item name (supports fuzzy search), item alias, or item ID.\nYou can set the maximum number of items to send per query on the configuration page, as well as whether to send the item list when the limit is exceeded or parameters are not entered.", examples: "query-item Vanguard", messages: { query_list_failed: "Failed to retrieve item list data", query_item_failed: "Failed to retrieve data for item '{0}'", querying_item: "Querying item data, please wait...", cache_building: "Initializing or rebuilding item cache for the current version, please wait...", empty_input: "No keywords provided. \n{#if show}Displaying full item list per current configuration\n{:else}No content available\n{/if}", not_found: "No items found matching the keywords, please verify and retry", too_many_items: "Found {count} items, exceeding maximum display limit ({max} items)\n{#if show}(Displaying item list){/if}", finded_items: "Matching items: \n{#each items as item}\n{item.name_loc}{#if item !== items[items.length - 1]}, {/if}\n{/each}" } }, "hero-of-the-day": { description: "Get hero recommendations for the day.", usage: "Fetches recent and lifetime match history to recommend heroes based on parameters like wins, performance score, and hot streaks.\nThe parameter can be a player's SteamID or the nickname of a player bound in this group. If no parameter is provided, it will try to look up the command caller's SteamID.", options: { days: "-d <number> The range of recent days to consider, default is 30." }, examples: 'hero-of-the-day\nhero-of-the-day -d 60\nhero-of-the-day 1234567890\nhero-of-the-day "John Doe"', messages: { title_recommendation: "Today's Recommendation:", recommendation_intro: "The recommended heroes for you today are:", recommendation_heroes: "{#each heroes as hero}{hero}{#if hero !== heroes[heroes.length - 1]}, {/if}{/each}", recommendation_type_lifetime_only: "Your recent match history is empty. This recommendation is based on your lifetime statistics.", recommendation_type_no_record: "Recommendations cannot be generated due to a lack of recent and lifetime match data.", recommendation_type_anonymous: "Recommendations cannot be generated because your profile data is private.", details: { pool_description: "The recommendation is generated by scoring your recent and lifetime hero performance, sorting by total score, and then randomly selecting from the top 10 heroes weighted by their scores.", table_intro: "Below is the detailed score breakdown for the top 10 heroes.", table_headers: { hero: "Hero", recent_wins: "Recent Wins Score", lifetime_wins: "Lifetime Wins<br>(Logarithmic)", imp_bonus: "IMP Bonus", is_hot_streak: "Hot Streak", total_score: "Total Score" }, scoring_formula: "Current Scoring Formula: [Recent Wins x 1] + [log(Lifetime Wins + 1) x 5] + [Recent IMP x 0.1]", hot_streak_desc: "If a hero was played in the last 3 days, it's considered a 'Hot Streak' hero, receiving a 20% bonus to its total score." }, title_meta: "Meta Trends:", meta_intro: "Top 3 advantage heroes for each position with a <b>pick rate ≥2%</b> within ±1 of your rank bracket ({tiers}) over the last week, sorted by win rate:", meta_table_header: "Hero (Pick% Win%)", meta_position: "Pos {pos}:", querying: "Retrieving player stats and hero win rates, please wait...", query_failed: "Command failed." } }, common: { messages: { user_not_binded_in_channel: "By default, it tries to find your information from the bound SteamID players, but it seems you are not bound.\nPlease bind your SteamID in this group. (You can enter [bind -h] for help)\nOr follow the command with the SteamID or nickname of the player you want to query.", user_not_in_group: "Command failed.\nCurrently not in a group chat, you must provide the specified player's SteamID.", invalid_input_include_steam_id: "Invalid SteamID and the player was not found in this group by the given input." } }, help: { description: "Get detailed information for all commands and the link to the online documentation.", usage: "Get detailed information for all commands and the link to the online documentation.", examples: "help", messages: { header: "Below is the full list of plugin commands.\n※Note: <arg> is a required argument, and [arg] is an optional argument. Please see the 'Examples' column for specific usage.", footer: "For more information on plugin configuration, template showcases, and other details, please visit the online documentation:\nhttps://sjtdev.github.io/koishi-plugin-dota2tracker/en-US/", table_headers: { command: "Command", alias: "Alias", arguments: "Arguments", description: "Description", options: "Options", examples: "Examples" } } } } } };
|
|
771
|
+
module2.exports = { commands: { dota2tracker: { description: "A series of commands for Dota 2 Tracker. Use dota2tracker -h to see all available commands, or use dota2tracker.help to see a detailed description of all commands.", subscribe: { description: "Subscribes the current channel to Dota 2 match tracking.", usage: "After subscribing, players need to bind their Steam ID in this channel. The bot will then track new matches of bound players and post image-based reports upon completion of parsing by Stratz.", examples: "subscribe", messages: { subscribe_success: "Subscription successful.", subscribed: "This Channel has been subscribed, no need to subscribe again." } }, unsubscribe: { description: "Unsubscribes the current channel from match tracking.", usage: "Unsubscribes the current channel from match tracking.", examples: "unsubscribe", messages: { unsubscribe_success: "Unsubscription successful.", not_subscribed: "This Channel has not been subscribed yet, so there is no need to unsubscribe." } }, bind: { description: "Binds your SteamID to your account in the current channel.", usage: 'Bind your SteamID to your account. If the channel is subscribed, your new match data will be posted automatically. Nicknames containing spaces must be enclosed in double quotes ("").', examples: 'bind 123456789\nbind 123456789 John\nbind 123456789 "John Doe"', messages: { steam_id_invalid: "Invalid SteamID.", bind_success: "Binding successful,\nID: {userId}\nNickname: {nickName}\nSteamID: {steamId}", bind_failed: "Binding failed, {0}", reason_without_match: "Invalid SteamID or no matches found.", reason_fetch_failed: "Poor network conditions or other reasons prevented the verification of the SteamID. Please try again later.", already_binded: "You are already bound, no need to bind again.\nHere is your personal information:\nID: {userId}\nNickname: {nickName}\nSteamID: {steamId}", nick_name_too_long: "Nickname is too long, please limit it to 20 characters or less. (It can also be left blank)", is_anonymous: 'Please note: Your Steam player data is not public, and you will not be able to use the main functions of the BOT, such as "battle report tracking," "query-recent-match commands," etc.\nIf you need to make data public, please set it to public in the DOTA2 game settings.' } }, unbind: { description: "Unbinds your personal information in the current channel.", usage: "Unbind your personal information in the current channel.", examples: "unbind", messages: { unbind_success: "Unbinding successful.", not_binded: "Not bound, no need to unbind." } }, rename: { description: "Changes the nickname set during binding.", usage: 'Change the nickname set during binding. Nicknames containing spaces must be enclosed in double quotes ("").', examples: 'rename John\nrename "John Doe"', messages: { rename_success: "Rename successful, now you are called {nick_name}.", empty_input: "Please enter your nickname.", not_binded: "Please bind first, you can set a nickname during binding.", nick_name_too_long: "Nickname is too long, please limit it to 20 characters.", nick_name_same: "The input content is the same as the original nickname and does not need to be renamed." } }, "query-members": { description: "Queries the players bound in this channel and generates an info image.", usage: "Queries the players bound in this channel and generates an informational image.", examples: "query-members", messages: { title: "Guild DOTA 2 Roster (Total: {count})", table_headers: { nickname: "Nickname", winrate: "Win Rate (L10)", last_match: "Last Match" }, no_members: "No players bound in this group.", query_failed: "Failed to query group members." } }, "query-match": { description: "Query the match data of the specified match ID and generate a picture.", usage: "Query the match data of the specified match ID and generate a picture.", options: { parse: "Whether to wait for match data parsing" }, examples: "query-match 1234567890\nquery-match 1234567890 -p\nquery-match 1234567890 --parse", messages: { empty_input: "Please enter the match ID.", match_id_invalid: "Invalid match ID.", querying_match: "Searching for match details, please wait...", query_failed: "Failed to get match data.", waiting_for_parse: "Match data has not been parsed yet, a parse request has been sent to the server. The battle report will be sent once parsing is complete or times out." } }, "query-recent-match": { description: "Query the most recent match data and generate a picture.", options: { parse: "Whether to wait for match data parsing" }, usage: "Query the most recent match data of the specified player and generate a picture.\nThe parameter can be the player's SteamID or the nickname of a player bound in this group. If no parameter is provided, it will try to query the SteamID of the command caller.", examples: "query-recent-match\nquery-recent-match 123456789\nquery-recent-match John\nquery-recent-match 123456789 -p\nquery-recent-match John --parse", messages: { querying_match: "Searching for match details, please wait...", query_failed: "Failed to get the player's recent match.", is_anonymous: "Your player data is not public, and recent match data cannot be obtained.\nIf you need to make data public, please set it to public in the DOTA2 game settings." } }, "query-player": { description: "Query the player's personal information, optionally specify a hero.", options: { hero: "Query the player's usage of the specified hero (same as querying a hero, can use nickname or ID)" }, usage: "Query the personal information of the specified player and generate a picture, optionally specify a hero.\nThe parameter can be the player's SteamID or the nickname of a player bound in this group. If no parameter is provided, it will try to query the SteamID of the command caller.", examples: "query-player\nquery-player 123456789\nquery-player John\nquery-player John --hero Anti-Mage\nquery-player John -o Anti-Mage", messages: { querying_player: "Retrieving player data, please wait...", query_failed: "Failed to get player information." } }, "query-hero": { description: "Query hero skills/stats information.", options: { random: "Randomly select a hero." }, usage: "Query the hero's skill descriptions and various stats, generate a picture.\nThe parameter can be the hero's ID, name, or common nickname.", examples: "query-hero 15\nquery-hero Razor\nquery-hero -r", messages: { not_found: "Hero not found, please confirm and re-enter.", querying_hero: "Retrieving hero data, please wait...", query_failed: "Failed to get hero data.", empty_input: "Please enter a parameter." } }, "query-item": { description: "Query item information", usage: "Query item descriptions and attributes, then generate and publish an image report.\nParameters can be item name (supports fuzzy search), item alias, or item ID.\nYou can set the maximum number of items to send per query on the configuration page, as well as whether to send the item list when the limit is exceeded or parameters are not entered.", examples: "query-item Vanguard", messages: { query_list_failed: "Failed to retrieve item list data", query_item_failed: "Failed to retrieve data for item '{0}'", querying_item: "Querying item data, please wait...", cache_building: "Initializing or rebuilding item cache for the current version, please wait...", empty_input: "No keywords provided. \n{#if show}Displaying full item list per current configuration\n{:else}No content available\n{/if}", not_found: "No items found matching the keywords, please verify and retry", too_many_items: "Found {count} items, exceeding maximum display limit ({max} items)\n{#if show}(Displaying item list){/if}", finded_items: "Matching items: \n{#each items as item}\n{item.name_loc}{#if item !== items[items.length - 1]}, {/if}\n{/each}" } }, "hero-of-the-day": { description: "Get hero recommendations for the day.", usage: "Fetches recent and lifetime match history to recommend heroes based on parameters like wins, performance score, and hot streaks.\nThe parameter can be a player's SteamID or the nickname of a player bound in this group. If no parameter is provided, it will try to look up the command caller's SteamID.", options: { days: "-d <number> The range of recent days to consider, default is 30." }, examples: 'hero-of-the-day\nhero-of-the-day -d 60\nhero-of-the-day 1234567890\nhero-of-the-day "John Doe"', messages: { title_recommendation: "Today's Recommendation:", recommendation_intro: "The recommended heroes for you today are:", recommendation_heroes: "{#each heroes as hero}{hero}{#if hero !== heroes[heroes.length - 1]}, {/if}{/each}", recommendation_type_lifetime_only: "Your recent match history is empty. This recommendation is based on your lifetime statistics.", recommendation_type_no_record: "Recommendations cannot be generated due to a lack of recent and lifetime match data.", recommendation_type_anonymous: "Recommendations cannot be generated because your profile data is private.", details: { pool_description: "The recommendation is generated by scoring your recent and lifetime hero performance, sorting by total score, and then randomly selecting from the top 10 heroes weighted by their scores.", table_intro: "Below is the detailed score breakdown for the top 10 heroes.", table_headers: { hero: "Hero", recent_wins: "Recent Wins Score", lifetime_wins: "Lifetime Wins<br>(Logarithmic)", imp_bonus: "IMP Bonus", is_hot_streak: "Hot Streak", total_score: "Total Score" }, scoring_formula: "Current Scoring Formula: [Recent Wins x 1] + [log(Lifetime Wins + 1) x 5] + [Recent IMP x 0.1]", hot_streak_desc: "If a hero was played in the last 3 days, it's considered a 'Hot Streak' hero, receiving a 20% bonus to its total score." }, title_meta: "Meta Trends:", meta_intro: "Top 3 advantage heroes for each position with a <b>pick rate ≥2%</b> within ±1 of your rank bracket ({tiers}) over the last week, sorted by win rate:", meta_table_header: "Hero (Pick% Win%)", meta_position: "Pos {pos}:", querying: "Retrieving player stats and hero win rates, please wait...", query_failed: "Command failed." } }, common: { messages: { user_not_binded_in_channel: "By default, it tries to find your information from the bound SteamID players, but it seems you are not bound.\nPlease bind your SteamID in this group. (You can enter [bind -h] for help)\nOr follow the command with the SteamID or nickname of the player you want to query.", user_not_in_group: "Command failed.\nCurrently not in a group chat, you must provide the specified player's SteamID.", invalid_input_include_steam_id: "Invalid SteamID and the player was not found in this group by the given input." } }, help: { description: "Get detailed information for all commands and the link to the online documentation.", usage: "Get detailed information for all commands and the link to the online documentation.", examples: "help", messages: { header: "Below is the full list of plugin commands.\n※Note: <arg> is a required argument, and [arg] is an optional argument. Please see the 'Examples' column for specific usage.", footer: "For more information on plugin configuration, template showcases, and other details, please visit the online documentation:\nhttps://sjtdev.github.io/koishi-plugin-dota2tracker/en-US/", table_headers: { command: "Command", alias: "Alias", arguments: "Arguments", description: "Description", options: "Options", examples: "Examples" } } } } } };
|
|
772
772
|
}
|
|
773
773
|
});
|
|
774
774
|
|
|
@@ -796,7 +796,7 @@ var require_en_US = __commonJS({
|
|
|
796
796
|
// src/locales/zh-CN.command.yml
|
|
797
797
|
var require_zh_CN_command = __commonJS({
|
|
798
798
|
"src/locales/zh-CN.command.yml"(exports2, module2) {
|
|
799
|
-
module2.exports = { commands: { dota2tracker: { description: "dota2tracker的一系列指令,可以使用dota2tracker -h
|
|
799
|
+
module2.exports = { commands: { dota2tracker: { description: "dota2tracker的一系列指令,可以使用dota2tracker -h查看所有可用指令,或者使用`dota2tracker.help`(默认别名`DOTA2帮助`)查看所有指令详细说明表。", subscribe: { description: "[订阅本群]", usage: "订阅后还需玩家在本群绑定SteamID,BOT将订阅本群中已绑定玩家的新比赛数据,在STRATZ比赛解析完成后将比赛数据生成为图片战报发布至本群中。", examples: "订阅本群", messages: { subscribed: "本群已订阅,无需重复订阅。", subscribe_success: "订阅成功。" } }, unsubscribe: { description: "[取消订阅] 取消订阅本群。", usage: "取消订阅本群。", examples: "取消订阅", messages: { unsubscribe_success: "取消订阅成功。", not_subscribed: "本群尚未订阅,无需取消订阅。" } }, bind: { description: "[绑定] 绑定SteamID,并起一个别名(也可以不起)。", usage: '将你的SteamID与你的账号绑定,若本群已订阅将会实时获取你的新比赛数据发布至群中。名称中含有空格时需要使用""引号包裹(英文半角引号)。', examples: '绑定 123456789\n绑定 123456789 张三\n绑定 123456789 "张 三"', messages: { steam_id_invalid: "SteamID无效。", bind_success: "绑定成功,\nID:{userId}\n别名:{nickName}\nSteamID:{steamId}", bind_failed: "绑定失败,{0}", reason_without_match: "SteamID无效或无任何场次。", reason_fetch_failed: "网络状况不佳或其他原因无法验证SteamID,请稍后重试。", already_binded: "你已绑定,无需重复绑定。\n以下是你的个人信息:\nID:{userId}\n别名:{nickName}\nSteamID:{steamId}", nick_name_too_long: "别名过长,请限制在20个字符以内。(也可以留空)", is_anonymous: "请注意:你的Steam玩家数据并未公开,将无法使用BOT的主要功能,如“战报追踪”、“查询最近指令”等。\n如需公开数据,请在DOTA2游戏内设置中公开。" } }, unbind: { description: "[取消绑定] 取消绑定你的个人信息。", usage: "取消绑定你的个人信息。", examples: "取消绑定", messages: { unbind_success: "取消绑定成功。", not_binded: "尚未绑定,无需取消绑定。" } }, rename: { description: "[改名] 修改绑定时设定的别名。", usage: '修改绑定时设定的别名。名称中含有空格时需要使用""引号包裹(英文半角引号)。', examples: '改名 李四\n改名 "李 四"', messages: { rename_success: "改名成功,现在你叫{nick_name}了。", empty_input: "请输入你的别名。", not_binded: "请先绑定,绑定时即可设定别名。", nick_name_too_long: "别名过长,请限制在20个字符以内。", nick_name_same: "目标别名与原始别名相同,无需改名。" } }, "query-members": { description: "[查询群友] 查询本群已绑定的玩家。", usage: "查询本群已绑定的玩家,生成简单信息图片发布。", examples: "查询群友", messages: { title: "本群 DOTA2 玩家名册 (共 {count} 人)", table_headers: { nickname: "昵称/别名", winrate: "胜率 (近10场)", last_match: "最近比赛" }, no_members: "本群尚无绑定玩家。", query_failed: "查询群友失败。" } }, "query-match": { description: "[查询比赛] 查询指定比赛ID的比赛数据,生成图片发布。", usage: "查询指定MatchID的比赛数据,生成图片发布。", options: { parse: "-p 是否等待解析比赛数据" }, examples: "查询比赛 1234567890\n查询比赛 1234567890 -p\n查询比赛 1234567890 --parse", messages: { empty_input: "请输入比赛ID。", match_id_invalid: "比赛ID无效。", querying_match: "正在搜索对局详情,请稍后……", query_failed: "获取比赛数据失败。", waiting_for_parse: "比赛数据尚未解析,已发送解析请求到服务器,战报将在解析完成或超时后发送。" } }, "query-recent-match": { description: "[查询最近比赛] 查询最近的比赛数据,生成图片发布。", options: { parse: "-p 是否等待解析比赛数据" }, usage: "查询指定玩家的最近一场比赛的比赛数据,生成图片发布。\n参数可输入该玩家的SteamID或已在本群绑定玩家的别名,无参数时尝试查询调用指令玩家的SteamID。", examples: "查询最近比赛\n查询最近比赛 123456789\n查询最近比赛 张三\n查询最近比赛 123456789 -p\n查询最近比赛 张三 --parse", messages: { querying_match: "正在搜索对局详情,请稍后……", query_failed: "获取玩家最近比赛失败。", not_in_group: "指令调用失败。\n当前不属于群聊状态,必须提供指定玩家的SteamID。", is_anonymous: "你的比赛数据未公开,无法获取最近比赛数据。\n如需公开数据,请在DOTA2游戏内设置中公开。" } }, "query-player": { description: "[查询玩家] 查询玩家的个人信息,可指定英雄。", options: { hero: "-o 查询玩家指定英雄使用情况(同查询英雄,可用别名或ID)" }, usage: "查询指定玩家的个人信息,生成图片发布,可指定英雄。\n参数可输入该玩家的SteamID或已在本群绑定玩家的别名,无参数时尝试查询调用指令玩家的SteamID。", examples: "查询玩家\n查询玩家 123456789\n查询玩家 张三\n查询玩家 张三 --hero 敌法师\n查询玩家 张三 -o 15", messages: { querying_player: "正在获取玩家数据,请稍后……", query_failed: "获取玩家信息失败。", not_in_group: "指令调用失败。\n当前不属于群聊状态,必须提供指定玩家的SteamID。" } }, "query-hero": { description: "[查询英雄] 查询英雄技能/面板信息。", options: { random: "-r 随机选择英雄" }, usage: "查询英雄的技能说明与各项数据,生成图片发布。\n参数可输入英雄ID、英雄名、英雄常用别名。", examples: "查询英雄 15\n查询英雄 雷泽\n查询英雄 电魂\n查询英雄 -r", messages: { not_found: "未找到输入的英雄,请确认后重新输入。", querying_hero: "正在获取英雄数据,请稍后……", query_failed: "获取英雄数据失败。", empty_input: "请输入参数。" } }, "query-item": { description: "[查询物品] 查询物品信息。", usage: "查询物品的描述与各项数据,生成图片发布。\n参数可输入物品名(可模糊查找)、物品别名、物品ID。\n可在配置页中设置每次查询的最大发送数量、以及是否在超过限制或未输入参数时发送物品列表。", examples: "查询物品 先锋盾", messages: { query_list_failed: "获取物品列表数据失败。", query_item_failed: "获取物品「{0}」数据失败", querying_item: "正在查询物品数据,请稍候…", cache_building: "初次使用或缓存已过期,正在生成当前版本的物品缓存,请稍后……", empty_input: "未输入关键字参数。根据当前配置{#if show},将返回全部物品列表{:else}无内容可发送{/if}。", not_found: "未找到与关键字匹配的物品,请确认后重试。", too_many_items: "找到{count}个物品,超过最大发送限制({max}个){#if show},将发送物品列表{/if}。", finded_items: "找到以下物品:{#each items as item}{item.name_loc}{#if item !== items[items.length - 1]}、{/if}{/each}" } }, "hero-of-the-day": { description: "[今日英雄] 获取今日英雄推荐。", usage: "获取近期比赛记录、生涯比赛记录,根据胜场、表现分、是否手热等参数计算推荐英雄。\n参数可输入该玩家的SteamID或已在本群绑定玩家的别名,无参数时尝试查询调用指令玩家的SteamID。", options: { days: "-d <number> 近期数据的获取范围,单位为天数,默认值为30" }, examples: "今日英雄\n今日英雄 -d 60\n今日英雄 1234567890\n今日英雄 张三", messages: { title_recommendation: "今日推荐:", recommendation_intro: "今日为您推荐的英雄是:", recommendation_heroes: "{#each heroes as hero}{hero}{#if hero !== heroes[heroes.length - 1]}、{/if}{/each}", recommendation_type_lifetime_only: "您的近期数据为空,本次推荐结果基于您的生涯数据。", recommendation_type_no_record: "您的近期与生涯数据为空,无法生成推荐信息。", recommendation_type_anonymous: "您的个人数据未公开,无法生成推荐信息。", details: { pool_description: "推荐结果根据对您的近期与生涯英雄使用记录计分后,按总分排序后对前10位英雄以分数为权重随机取得。", table_intro: "以下是前10位英雄具体得分表。", table_headers: { hero: "英雄名称", recent_wins: "近期胜场分", lifetime_wins: "生涯胜场分<br>(对数)", imp_bonus: "imp奖励分", is_hot_streak: "是否手热", total_score: "总分" }, scoring_formula: "当前计分规则:[近期胜场数 x 1] + [log(生涯胜场数+1) x 5] + [近期imp x 0.1]", hot_streak_desc: "若英雄在3天内使用过,则记为手热英雄,总分提升20%。" }, title_meta: "环境趋势:", meta_intro: "一周内,基于您段位±1 ({tiers}) 范围内各位置<b>选择率≥2%</b>按胜率从高到低前三名优势英雄:", meta_table_header: "英雄名称(选择率% 胜率%)", meta_position: "{pos}号位:", querying: "正在查询玩家数据、英雄胜率等数据,请稍候……", query_failed: "指令调用失败。" } }, common: { messages: { user_not_binded_in_channel: "无参数时默认从已绑定SteamID玩家中寻找你的信息,但你似乎并没有绑定。\n请在本群绑定SteamID。(可输入【绑定 -h】获取帮助)\n或在指令后跟上希望查询的SteamID或已绑定玩家的别名。", user_not_in_group: "指令调用失败。\n当前不属于群聊状态,必须提供指定玩家的SteamID。", invalid_input_include_steam_id: "SteamID无效并且未在本群根据输入信息找到玩家。" } }, help: { description: "[DOTA2指南] 获取插件的全部指令详细信息与在线文档链接。", usage: "获取插件的全部指令详细信息与在线文档链接。", examples: "DOTA2指南\nDOTA2帮助\nDOTA2说明", messages: { header: "以下是插件的全部指令。\n※注意 <arg> 是必须参数,[arg] 是可选参数,具体使用方法请看“用法示例”列。", footer: "插件配置、模板展示等更多信息请访问在线文档:\nhttps://sjtdev.github.io/koishi-plugin-dota2tracker/", table_headers: { command: "指令名", alias: "指令中文", arguments: "参数", description: "说明", options: "选项", examples: "用法示例" } } } } } };
|
|
800
800
|
}
|
|
801
801
|
});
|
|
802
802
|
|
|
@@ -1627,6 +1627,7 @@ var MatchService = class _MatchService extends import_koishi4.Service {
|
|
|
1627
1627
|
const facetData = await _MatchService.constantsInjectFacetData(constantsQuery, matchQuery, languageTag, this.ctx.dota2tracker.hero);
|
|
1628
1628
|
this.ctx.dota2tracker.cache.setFacetConstantsCache(languageTag, constantsQuery);
|
|
1629
1629
|
const match = _MatchService.extendMatchData(matchQuery, facetData, this.ctx.dota2tracker.dotaconstants);
|
|
1630
|
+
this.ctx.dota2tracker.report.recordMatchExtension(match);
|
|
1630
1631
|
return match;
|
|
1631
1632
|
} catch (error) {
|
|
1632
1633
|
this.ctx.dota2tracker.cache.deleteFacetConstantsCache(languageTag);
|
|
@@ -2311,6 +2312,10 @@ var DatabaseService = class extends import_koishi7.Service {
|
|
|
2311
2312
|
},
|
|
2312
2313
|
{ autoInc: true }
|
|
2313
2314
|
);
|
|
2315
|
+
ctx.model.extend("dt_match_extension", { matchId: "unsigned", startTime: "timestamp", data: "json" }, { autoInc: false, primary: ["matchId"] });
|
|
2316
|
+
}
|
|
2317
|
+
async insertReportData(matchId, startTime, data) {
|
|
2318
|
+
return this.ctx.database.upsert("dt_match_extension", [{ matchId, startTime, data }]);
|
|
2314
2319
|
}
|
|
2315
2320
|
async setPlayerRank(playerId, rank) {
|
|
2316
2321
|
return this.ctx.database.set("dt_subscribed_players", playerId, { rank });
|
|
@@ -2639,7 +2644,7 @@ var ValveAPI = class extends import_koishi9.Service {
|
|
|
2639
2644
|
}
|
|
2640
2645
|
};
|
|
2641
2646
|
|
|
2642
|
-
// src/app/presentation/
|
|
2647
|
+
// src/app/presentation/view.renderer.ts
|
|
2643
2648
|
var import_koishi10 = require("koishi");
|
|
2644
2649
|
var import_ejs = __toESM(require("ejs"));
|
|
2645
2650
|
var import_fs2 = __toESM(require("fs"));
|
|
@@ -2663,11 +2668,11 @@ var ImageFormat = /* @__PURE__ */ ((ImageFormat2) => {
|
|
|
2663
2668
|
return ImageFormat2;
|
|
2664
2669
|
})(ImageFormat || {});
|
|
2665
2670
|
|
|
2666
|
-
// src/app/presentation/
|
|
2671
|
+
// src/app/presentation/view.renderer.ts
|
|
2667
2672
|
var import_luxon5 = require("luxon");
|
|
2668
|
-
var
|
|
2673
|
+
var ViewRenderer = class extends import_koishi10.Service {
|
|
2669
2674
|
static {
|
|
2670
|
-
__name(this, "
|
|
2675
|
+
__name(this, "ViewRenderer");
|
|
2671
2676
|
}
|
|
2672
2677
|
templateDir;
|
|
2673
2678
|
constructor(ctx, currentDir) {
|
|
@@ -2802,7 +2807,7 @@ var MessageBuilder = class extends import_koishi11.Service {
|
|
|
2802
2807
|
table.push(row);
|
|
2803
2808
|
}
|
|
2804
2809
|
html += this._createTableHTML(table, void 0, this.ctx.i18n._data[languageTag]["commands.dota2tracker.help.messages.header"]);
|
|
2805
|
-
message += await this.ctx.dota2tracker.
|
|
2810
|
+
message += await this.ctx.dota2tracker.view.renderToImageByEJSCode(void 0, html, languageTag);
|
|
2806
2811
|
message += this.ctx.dota2tracker.i18n.$t(languageTag, "commands.dota2tracker.help.messages.footer");
|
|
2807
2812
|
return message;
|
|
2808
2813
|
}
|
|
@@ -2854,7 +2859,7 @@ var MessageBuilder = class extends import_koishi11.Service {
|
|
|
2854
2859
|
ejs2 += `<p>${$t("meta_position", { pos: pos.at(-1) })}${heroesText}</p>`;
|
|
2855
2860
|
}
|
|
2856
2861
|
ejs2 += "</body></html>";
|
|
2857
|
-
return await this.ctx.dota2tracker.
|
|
2862
|
+
return await this.ctx.dota2tracker.view.renderToImageByEJSCode(void 0, ejs2, languageTag);
|
|
2858
2863
|
}
|
|
2859
2864
|
buildMatchMessage(languageTag, match, players) {
|
|
2860
2865
|
let broadMatchMessage = "";
|
|
@@ -2970,7 +2975,7 @@ var MessageBuilder = class extends import_koishi11.Service {
|
|
|
2970
2975
|
</body>
|
|
2971
2976
|
</html>
|
|
2972
2977
|
`;
|
|
2973
|
-
return await this.ctx.dota2tracker.
|
|
2978
|
+
return await this.ctx.dota2tracker.view.renderToImageByEJSCode({}, ejs2, languageTag);
|
|
2974
2979
|
}
|
|
2975
2980
|
buildRankChangedMessage(languageTag, name2, prevRank, currRank) {
|
|
2976
2981
|
return this.ctx.dota2tracker.i18n.$t(languageTag, "dota2tracker.broadcast.rank_changed", {
|
|
@@ -3119,7 +3124,7 @@ var MatchWatcherTask = class extends import_koishi12.Service {
|
|
|
3119
3124
|
const name2 = subPlayer.nickName ?? guildMember?.nick ?? playersData.find((player) => player.steamAccount.id == subPlayer.steamId)?.steamAccount.name ?? String(subPlayer.steamId);
|
|
3120
3125
|
const languageTag = await this.ctx.dota2tracker.i18n.getLanguageTag({ channelId: subPlayer.guildId });
|
|
3121
3126
|
if (this.config.rankBroadFun === true) {
|
|
3122
|
-
const img = await this.ctx.dota2tracker.
|
|
3127
|
+
const img = await this.ctx.dota2tracker.view.renderToImageByFile(
|
|
3123
3128
|
{
|
|
3124
3129
|
name: name2,
|
|
3125
3130
|
avatar: guildMember?.avatar ?? playersData.find((player) => subPlayer.steamId == player.steamAccount.id).steamAccount.avatar,
|
|
@@ -3225,7 +3230,7 @@ var ParsePollingTask = class extends import_koishi13.Service {
|
|
|
3225
3230
|
const defaultTemplateSubscribers = subscribers.filter((s) => s.source === "AUTOMATIC" || s.source === "COMMAND" && !s.templateName);
|
|
3226
3231
|
const customTemplateSubscribers = subscribers.filter((s) => s.source === "COMMAND" && s.templateName);
|
|
3227
3232
|
if (defaultTemplateSubscribers.length > 0) {
|
|
3228
|
-
const defaultImage = await this.ctx.dota2tracker.
|
|
3233
|
+
const defaultImage = await this.ctx.dota2tracker.view.renderToImageByFile(formattedMatchData, this.config.template_match, "match" /* Match */, languageTag);
|
|
3229
3234
|
for (const sub of defaultTemplateSubscribers) {
|
|
3230
3235
|
const message = this.ctx.dota2tracker.messageBuilder.buildMatchMessage(languageTag, formattedMatchData, sub.relevantPlayers);
|
|
3231
3236
|
await this.broadcastMessage(sub, message + defaultImage);
|
|
@@ -3233,7 +3238,7 @@ var ParsePollingTask = class extends import_koishi13.Service {
|
|
|
3233
3238
|
}
|
|
3234
3239
|
}
|
|
3235
3240
|
for (const sub of customTemplateSubscribers) {
|
|
3236
|
-
const image = await this.ctx.dota2tracker.
|
|
3241
|
+
const image = await this.ctx.dota2tracker.view.renderToImageByFile(formattedMatchData, sub.source === "COMMAND" ? sub.templateName : this.config.template_match, "match" /* Match */, languageTag);
|
|
3237
3242
|
const message = this.ctx.dota2tracker.messageBuilder.buildMatchMessage(languageTag, formattedMatchData, sub.relevantPlayers);
|
|
3238
3243
|
await this.broadcastMessage(sub, message + image);
|
|
3239
3244
|
guildsToLogger.push({ platform: sub.platform, guildId: sub.channelId, languageTag });
|
|
@@ -3374,7 +3379,7 @@ var ReportTask = class extends import_koishi14.Service {
|
|
|
3374
3379
|
const languageTag = await this.ctx.dota2tracker.i18n.getLanguageTag({ channelId: guild.guildId });
|
|
3375
3380
|
await this.ctx.broadcast(
|
|
3376
3381
|
[`${guild.platform}:${guild.guildId}`],
|
|
3377
|
-
await this.ctx.dota2tracker.
|
|
3382
|
+
await this.ctx.dota2tracker.view.renderToImageByFile(
|
|
3378
3383
|
{
|
|
3379
3384
|
title: this.ctx.dota2tracker.i18n.$t(languageTag, titleKey),
|
|
3380
3385
|
players: currentsubscribedPlayers.sort((a, b) => {
|
|
@@ -3543,7 +3548,7 @@ function registerQueryHeroCommand(ctx) {
|
|
|
3543
3548
|
await task.finish();
|
|
3544
3549
|
return session.text(".not_found");
|
|
3545
3550
|
}
|
|
3546
|
-
const image = await ctx.dota2tracker.
|
|
3551
|
+
const image = await ctx.dota2tracker.view.renderToImageByFile(heroData, ctx.config.template_hero, "hero" /* Hero */, languageTag);
|
|
3547
3552
|
const message = ctx.dota2tracker.messageBuilder.buildHeroMessage(heroData);
|
|
3548
3553
|
await task.finish();
|
|
3549
3554
|
await session.send(message + image);
|
|
@@ -3572,7 +3577,7 @@ function registerQueryItemCommand(ctx) {
|
|
|
3572
3577
|
const languageTag = await ctx.dota2tracker.i18n.getLanguageTag({ session });
|
|
3573
3578
|
const itemList = await ctx.dota2tracker.item.getItemList({ languageTag, onCacheMissTip: /* @__PURE__ */ __name(() => task.send(session.text(".cache_building")), "onCacheMissTip") });
|
|
3574
3579
|
if (!input_data) {
|
|
3575
|
-
const image = await ctx.dota2tracker.
|
|
3580
|
+
const image = await ctx.dota2tracker.view.renderToImageByFile(itemList, "itemlist", "item" /* Item */, languageTag);
|
|
3576
3581
|
await task.finish();
|
|
3577
3582
|
await session.send(image);
|
|
3578
3583
|
return;
|
|
@@ -3587,7 +3592,7 @@ function registerQueryItemCommand(ctx) {
|
|
|
3587
3592
|
await task.finish();
|
|
3588
3593
|
await session.send(session.text(".too_many_items", { count: matchedItemList.length, max: ctx.config.maxSendItemCount }));
|
|
3589
3594
|
if (ctx.config.showItemListAtTooMuchItems) {
|
|
3590
|
-
const image = await ctx.dota2tracker.
|
|
3595
|
+
const image = await ctx.dota2tracker.view.renderToImageByFile(matchedItemList, "itemlist", "item" /* Item */, languageTag);
|
|
3591
3596
|
await session.send(image);
|
|
3592
3597
|
}
|
|
3593
3598
|
return;
|
|
@@ -3598,7 +3603,7 @@ function registerQueryItemCommand(ctx) {
|
|
|
3598
3603
|
try {
|
|
3599
3604
|
const itemDetails = await ctx.dota2tracker.item.getItemDetails(basicItemInfo.id, languageTag);
|
|
3600
3605
|
const finalItemData = { ...itemDetails, ...basicItemInfo };
|
|
3601
|
-
const image = await ctx.dota2tracker.
|
|
3606
|
+
const image = await ctx.dota2tracker.view.renderToImageByFile(finalItemData, "item", "item" /* Item */, languageTag);
|
|
3602
3607
|
await session.send(image);
|
|
3603
3608
|
} catch (error) {
|
|
3604
3609
|
ctx.logger.error(`查询物品[${basicItemInfo.name_loc}]详情失败:`, error);
|
|
@@ -3673,7 +3678,7 @@ async function handleQueryMatchCommand(ctx, config, session, options, matchId) {
|
|
|
3673
3678
|
} else {
|
|
3674
3679
|
const formattedMatchData = await ctx.dota2tracker.match.generateMatchData(result.matchData, languageTag);
|
|
3675
3680
|
const message = ctx.dota2tracker.messageBuilder.buildMatchMessage(languageTag, formattedMatchData, []);
|
|
3676
|
-
const image = await ctx.dota2tracker.
|
|
3681
|
+
const image = await ctx.dota2tracker.view.renderToImageByFile(formattedMatchData, options.template || config.template_match, "match" /* Match */, languageTag);
|
|
3677
3682
|
return message + image;
|
|
3678
3683
|
}
|
|
3679
3684
|
}
|
|
@@ -3705,7 +3710,7 @@ function registerQueryPlayerCommand(ctx) {
|
|
|
3705
3710
|
const heroId = ctx.dota2tracker.i18n.findHeroIdInLocale(options.hero);
|
|
3706
3711
|
const languageTag = await ctx.dota2tracker.i18n.getLanguageTag({ session });
|
|
3707
3712
|
const formattedPlayerData = await ctx.dota2tracker.player.getFormattedPlayerData(steamId, heroId, languageTag);
|
|
3708
|
-
const image = await ctx.dota2tracker.
|
|
3713
|
+
const image = await ctx.dota2tracker.view.renderToImageByFile(formattedPlayerData, ctx.config.template_player, "player" /* Player */, languageTag);
|
|
3709
3714
|
const message = ctx.dota2tracker.messageBuilder.buildPlayerMessage(steamId);
|
|
3710
3715
|
await task.finish();
|
|
3711
3716
|
return message + image;
|
|
@@ -4305,8 +4310,35 @@ function convertBuildingEvents(objectives) {
|
|
|
4305
4310
|
}
|
|
4306
4311
|
__name(convertBuildingEvents, "convertBuildingEvents");
|
|
4307
4312
|
|
|
4308
|
-
// src/
|
|
4313
|
+
// src/app/core/report.service.ts
|
|
4309
4314
|
var import_koishi17 = require("koishi");
|
|
4315
|
+
var ReportService = class extends import_koishi17.Service {
|
|
4316
|
+
static {
|
|
4317
|
+
__name(this, "ReportService");
|
|
4318
|
+
}
|
|
4319
|
+
constructor(ctx) {
|
|
4320
|
+
super(ctx, "dota2tracker.report", true);
|
|
4321
|
+
this.config = ctx.config;
|
|
4322
|
+
}
|
|
4323
|
+
async recordMatchExtension(match) {
|
|
4324
|
+
const extensionData = { matchId: match.id, players: [] };
|
|
4325
|
+
for (const player of match.players) {
|
|
4326
|
+
extensionData.players.push({
|
|
4327
|
+
steamAccountId: player.steamAccountId,
|
|
4328
|
+
rankSnapshot: player.rank,
|
|
4329
|
+
mvpScore: player.mvpScore,
|
|
4330
|
+
titles: player.titles,
|
|
4331
|
+
utilityScore: player.utilityScore,
|
|
4332
|
+
laneResult: player.laneResult,
|
|
4333
|
+
partyId: player.partyId
|
|
4334
|
+
});
|
|
4335
|
+
}
|
|
4336
|
+
this.ctx.dota2tracker.database.insertReportData(extensionData.matchId, new Date(match.startDateTime * 1e3), extensionData);
|
|
4337
|
+
}
|
|
4338
|
+
};
|
|
4339
|
+
|
|
4340
|
+
// src/config.ts
|
|
4341
|
+
var import_koishi18 = require("koishi");
|
|
4310
4342
|
var import_fs3 = __toESM(require("fs"));
|
|
4311
4343
|
var import_path3 = __toESM(require("path"));
|
|
4312
4344
|
|
|
@@ -4319,79 +4351,79 @@ var globRequire_locales_schema_yml = __glob({
|
|
|
4319
4351
|
// src/config.ts
|
|
4320
4352
|
var templateDir = import_path3.default.join(__dirname, "templates");
|
|
4321
4353
|
var allI18nConfigs = Object.fromEntries(Object.keys(LanguageTags).map((lang) => [lang, globRequire_locales_schema_yml(`./locales/${lang}.schema.yml`)._config]));
|
|
4322
|
-
var Config =
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
STRATZ_API_TOKEN:
|
|
4326
|
-
dataParsingTimeoutMinutes:
|
|
4327
|
-
proxyAddress:
|
|
4328
|
-
suppressApiNetworkErrors:
|
|
4329
|
-
enableOpenDotaFallback:
|
|
4354
|
+
var Config = import_koishi18.Schema.intersect([
|
|
4355
|
+
import_koishi18.Schema.intersect([
|
|
4356
|
+
import_koishi18.Schema.object({
|
|
4357
|
+
STRATZ_API_TOKEN: import_koishi18.Schema.string().required().role("secret"),
|
|
4358
|
+
dataParsingTimeoutMinutes: import_koishi18.Schema.number().default(60).min(0).max(1440),
|
|
4359
|
+
proxyAddress: import_koishi18.Schema.string(),
|
|
4360
|
+
suppressApiNetworkErrors: import_koishi18.Schema.boolean().default(false),
|
|
4361
|
+
enableOpenDotaFallback: import_koishi18.Schema.boolean().default(false)
|
|
4330
4362
|
}).i18n(getI18n("base")),
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
enableOpenDotaFallback:
|
|
4334
|
-
OPENDOTA_API_KEY:
|
|
4335
|
-
OpenDotaIPStack:
|
|
4363
|
+
import_koishi18.Schema.union([
|
|
4364
|
+
import_koishi18.Schema.object({
|
|
4365
|
+
enableOpenDotaFallback: import_koishi18.Schema.const(true).required(),
|
|
4366
|
+
OPENDOTA_API_KEY: import_koishi18.Schema.string().role("secret"),
|
|
4367
|
+
OpenDotaIPStack: import_koishi18.Schema.union(["auto", "ipv4"]).default("auto")
|
|
4336
4368
|
}),
|
|
4337
|
-
|
|
4369
|
+
import_koishi18.Schema.object({})
|
|
4338
4370
|
]).i18n(getI18n("base"))
|
|
4339
4371
|
]),
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
useHeroNicknames:
|
|
4343
|
-
urlInMessageType:
|
|
4344
|
-
maxSendItemCount:
|
|
4345
|
-
showItemListAtTooMuchItems:
|
|
4346
|
-
customItemAlias:
|
|
4347
|
-
|
|
4348
|
-
keyword:
|
|
4349
|
-
alias:
|
|
4372
|
+
import_koishi18.Schema.intersect([
|
|
4373
|
+
import_koishi18.Schema.object({
|
|
4374
|
+
useHeroNicknames: import_koishi18.Schema.boolean().default(true),
|
|
4375
|
+
urlInMessageType: import_koishi18.Schema.array(import_koishi18.Schema.union([import_koishi18.Schema.const("match"), import_koishi18.Schema.const("player"), import_koishi18.Schema.const("hero")])).role("checkbox"),
|
|
4376
|
+
maxSendItemCount: import_koishi18.Schema.number().default(5).min(1).max(10),
|
|
4377
|
+
showItemListAtTooMuchItems: import_koishi18.Schema.boolean().default(true),
|
|
4378
|
+
customItemAlias: import_koishi18.Schema.array(
|
|
4379
|
+
import_koishi18.Schema.object({
|
|
4380
|
+
keyword: import_koishi18.Schema.string().required(),
|
|
4381
|
+
alias: import_koishi18.Schema.string().required()
|
|
4350
4382
|
})
|
|
4351
4383
|
).default([]).role("table"),
|
|
4352
|
-
autoRecallTips:
|
|
4353
|
-
rankBroadSwitch:
|
|
4384
|
+
autoRecallTips: import_koishi18.Schema.boolean().default(true),
|
|
4385
|
+
rankBroadSwitch: import_koishi18.Schema.boolean().default(false)
|
|
4354
4386
|
}).i18n(getI18n("message")),
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
rankBroadSwitch:
|
|
4358
|
-
rankBroadStar:
|
|
4359
|
-
rankBroadLeader:
|
|
4360
|
-
rankBroadFun:
|
|
4387
|
+
import_koishi18.Schema.union([
|
|
4388
|
+
import_koishi18.Schema.object({
|
|
4389
|
+
rankBroadSwitch: import_koishi18.Schema.const(true).required(),
|
|
4390
|
+
rankBroadStar: import_koishi18.Schema.boolean().default(true),
|
|
4391
|
+
rankBroadLeader: import_koishi18.Schema.boolean().default(true),
|
|
4392
|
+
rankBroadFun: import_koishi18.Schema.boolean().default(false)
|
|
4361
4393
|
}),
|
|
4362
|
-
|
|
4394
|
+
import_koishi18.Schema.object({})
|
|
4363
4395
|
]).i18n(getI18n("message"))
|
|
4364
4396
|
]),
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
dailyReportSwitch:
|
|
4397
|
+
import_koishi18.Schema.intersect([
|
|
4398
|
+
import_koishi18.Schema.object({
|
|
4399
|
+
dailyReportSwitch: import_koishi18.Schema.boolean().default(false)
|
|
4368
4400
|
}).i18n(getI18n("report")),
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
dailyReportSwitch:
|
|
4372
|
-
dailyReportHours:
|
|
4373
|
-
dailyReportShowCombi:
|
|
4401
|
+
import_koishi18.Schema.union([
|
|
4402
|
+
import_koishi18.Schema.object({
|
|
4403
|
+
dailyReportSwitch: import_koishi18.Schema.const(true).required(),
|
|
4404
|
+
dailyReportHours: import_koishi18.Schema.number().min(0).max(23).default(6),
|
|
4405
|
+
dailyReportShowCombi: import_koishi18.Schema.boolean().default(true)
|
|
4374
4406
|
}),
|
|
4375
|
-
|
|
4407
|
+
import_koishi18.Schema.object({})
|
|
4376
4408
|
]).i18n(getI18n("report")),
|
|
4377
|
-
|
|
4378
|
-
weeklyReportSwitch:
|
|
4409
|
+
import_koishi18.Schema.object({
|
|
4410
|
+
weeklyReportSwitch: import_koishi18.Schema.boolean().default(false)
|
|
4379
4411
|
}).i18n(getI18n("report")).description(void 0),
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
weeklyReportSwitch:
|
|
4383
|
-
weeklyReportDayHours:
|
|
4384
|
-
weeklyReportShowCombi:
|
|
4412
|
+
import_koishi18.Schema.union([
|
|
4413
|
+
import_koishi18.Schema.object({
|
|
4414
|
+
weeklyReportSwitch: import_koishi18.Schema.const(true).required(),
|
|
4415
|
+
weeklyReportDayHours: import_koishi18.Schema.tuple([import_koishi18.Schema.number().min(1).max(7), import_koishi18.Schema.number().min(0).max(23)]).default([1, 10]),
|
|
4416
|
+
weeklyReportShowCombi: import_koishi18.Schema.boolean().default(true)
|
|
4385
4417
|
}),
|
|
4386
|
-
|
|
4418
|
+
import_koishi18.Schema.object({})
|
|
4387
4419
|
]).i18n(getI18n("report"))
|
|
4388
4420
|
]),
|
|
4389
|
-
|
|
4390
|
-
template_match:
|
|
4391
|
-
template_player:
|
|
4392
|
-
template_hero:
|
|
4393
|
-
playerRankEstimate:
|
|
4394
|
-
templateFonts:
|
|
4421
|
+
import_koishi18.Schema.object({
|
|
4422
|
+
template_match: import_koishi18.Schema.union([...readDirectoryFilesSync(import_path3.default.join(templateDir, "match"))]).default("match_1"),
|
|
4423
|
+
template_player: import_koishi18.Schema.union([...readDirectoryFilesSync(import_path3.default.join(templateDir, "player"))]).default("player_1"),
|
|
4424
|
+
template_hero: import_koishi18.Schema.union([...readDirectoryFilesSync(import_path3.default.join(templateDir, "hero"))]).default("hero_1"),
|
|
4425
|
+
playerRankEstimate: import_koishi18.Schema.boolean().default(true),
|
|
4426
|
+
templateFonts: import_koishi18.Schema.array(String).default([]).role("table")
|
|
4395
4427
|
}).i18n(getI18n("template"))
|
|
4396
4428
|
]);
|
|
4397
4429
|
function getI18n(key) {
|
|
@@ -4432,14 +4464,14 @@ async function apply(ctx, config) {
|
|
|
4432
4464
|
ctx.dota2tracker = {};
|
|
4433
4465
|
ctx.dota2tracker.dotaconstants = dotaconstants;
|
|
4434
4466
|
ctx.dota2tracker.i18n = new I18NService(ctx);
|
|
4435
|
-
ctx.dota2tracker.
|
|
4467
|
+
ctx.dota2tracker.view = new ViewRenderer(ctx, currentDir);
|
|
4436
4468
|
ctx.dota2tracker.messageBuilder = new MessageBuilder(ctx);
|
|
4437
4469
|
ctx.dota2tracker.match = new MatchService(ctx, pluginVersion);
|
|
4438
4470
|
ctx.dota2tracker.player = new PlayerService(ctx);
|
|
4439
4471
|
if (ctx.cron) {
|
|
4440
4472
|
ctx.dota2tracker.matchWatcher = new MatchWatcherTask(ctx);
|
|
4441
4473
|
ctx.dota2tracker.parsePolling = new ParsePollingTask(ctx);
|
|
4442
|
-
ctx.dota2tracker.
|
|
4474
|
+
ctx.dota2tracker.reportTask = new ReportTask(ctx);
|
|
4443
4475
|
ctx.cron("* * * * *", async () => {
|
|
4444
4476
|
await ctx.dota2tracker.matchWatcher.discovery();
|
|
4445
4477
|
await ctx.dota2tracker.parsePolling.polling();
|
|
@@ -4449,6 +4481,7 @@ async function apply(ctx, config) {
|
|
|
4449
4481
|
}
|
|
4450
4482
|
ctx.dota2tracker.hero = new HeroService(ctx);
|
|
4451
4483
|
ctx.dota2tracker.item = new ItemService(ctx);
|
|
4484
|
+
ctx.dota2tracker.report = new ReportService(ctx);
|
|
4452
4485
|
ctx.dota2tracker.cache = new CacheService(ctx);
|
|
4453
4486
|
ctx.dota2tracker.database = new DatabaseService(ctx);
|
|
4454
4487
|
ctx.dota2tracker.valveAPI = new ValveAPI(ctx);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
query RequestMatchDataAnalysis($matchId: Long!) {
|
|
2
|
-
stratz {
|
|
3
|
-
matchRetry(id: $matchId)
|
|
4
|
-
}
|
|
5
|
-
}
|
|
1
|
+
query RequestMatchDataAnalysis($matchId: Long!) {
|
|
2
|
+
stratz {
|
|
3
|
+
matchRetry(id: $matchId)
|
|
4
|
+
}
|
|
5
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sjtdev/koishi-plugin-dota2tracker",
|
|
3
|
-
"description": "koishi插件-追踪群友的DOTA2对局",
|
|
4
|
-
"version": "2.3.
|
|
3
|
+
"description": "koishi插件-追踪群友的DOTA2对局 | A Koishi plugin to track Dota 2 matches",
|
|
4
|
+
"version": "2.3.4",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"type": "git",
|
|
17
17
|
"url": "git+https://github.com/sjtdev/koishi-plugin-dota2tracker.git"
|
|
18
18
|
},
|
|
19
|
-
"license": "
|
|
19
|
+
"license": "GPL-3.0",
|
|
20
20
|
"keywords": [
|
|
21
21
|
"chatbot",
|
|
22
22
|
"koishi",
|
|
@@ -37,6 +37,10 @@
|
|
|
37
37
|
"@koishijs/plugin-console": "^5.30.11",
|
|
38
38
|
"koishi": "^4.18.9"
|
|
39
39
|
},
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public",
|
|
42
|
+
"provenance": true
|
|
43
|
+
},
|
|
40
44
|
"koishi": {
|
|
41
45
|
"description": {
|
|
42
46
|
"zh": "追踪群友的DOTA2对局",
|