fix formatting

This commit is contained in:
Ryan Cao 2022-10-21 20:04:48 +08:00
parent 3e56cecbbf
commit 13effc58fe
No known key found for this signature in database
5 changed files with 164 additions and 153 deletions

View file

@ -1,4 +1,5 @@
# GNU GENERAL PUBLIC LICENSE # GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007 Version 3, 29 June 2007
Copyright (C) 2007 [Free Software Foundation, Inc.](http://fsf.org/) Copyright (C) 2007 [Free Software Foundation, Inc.](http://fsf.org/)
@ -38,9 +39,9 @@ must show them these terms so they know their rights.
Developers that use the GNU GPL protect your rights with two steps: Developers that use the GNU GPL protect your rights with two steps:
1. assert copyright on the software, and 1. assert copyright on the software, and
2. offer you this License giving you legal permission to copy, distribute 2. offer you this License giving you legal permission to copy, distribute
and/or modify it. and/or modify it.
For the developers' and authors' protection, the GPL clearly explains that For the developers' and authors' protection, the GPL clearly explains that
there is no warranty for this free software. For both users' and authors' sake, there is no warranty for this free software. For both users' and authors' sake,
@ -71,65 +72,65 @@ follow.
### 0. Definitions. ### 0. Definitions.
*This License* refers to version 3 of the GNU General Public License. _This License_ refers to version 3 of the GNU General Public License.
*Copyright* also means copyright-like laws that apply to other kinds of works, _Copyright_ also means copyright-like laws that apply to other kinds of works,
such as semiconductor masks. such as semiconductor masks.
*The Program* refers to any copyrightable work licensed under this License. _The Program_ refers to any copyrightable work licensed under this License.
Each licensee is addressed as *you*. *Licensees* and *recipients* may be Each licensee is addressed as _you_. _Licensees_ and _recipients_ may be
individuals or organizations. individuals or organizations.
To *modify* a work means to copy from or adapt all or part of the work in a To _modify_ a work means to copy from or adapt all or part of the work in a
fashion requiring copyright permission, other than the making of an exact copy. fashion requiring copyright permission, other than the making of an exact copy.
The resulting work is called a *modified version* of the earlier work or a work The resulting work is called a _modified version_ of the earlier work or a work
*based on* the earlier work. _based on_ the earlier work.
A *covered work* means either the unmodified Program or a work based on the A _covered work_ means either the unmodified Program or a work based on the
Program. Program.
To *propagate* a work means to do anything with it that, without permission, To _propagate_ a work means to do anything with it that, without permission,
would make you directly or secondarily liable for infringement under applicable would make you directly or secondarily liable for infringement under applicable
copyright law, except executing it on a computer or modifying a private copy. copyright law, except executing it on a computer or modifying a private copy.
Propagation includes copying, distribution (with or without modification), Propagation includes copying, distribution (with or without modification),
making available to the public, and in some countries other activities as well. making available to the public, and in some countries other activities as well.
To *convey* a work means any kind of propagation that enables other parties to To _convey_ a work means any kind of propagation that enables other parties to
make or receive copies. Mere interaction with a user through a computer make or receive copies. Mere interaction with a user through a computer
network, with no transfer of a copy, is not conveying. network, with no transfer of a copy, is not conveying.
An interactive user interface displays *Appropriate Legal Notices* to the An interactive user interface displays _Appropriate Legal Notices_ to the
extent that it includes a convenient and prominently visible feature that extent that it includes a convenient and prominently visible feature that
1. displays an appropriate copyright notice, and 1. displays an appropriate copyright notice, and
2. tells the user that there is no warranty for the work (except to the 2. tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the work extent that warranties are provided), that licensees may convey the work
under this License, and how to view a copy of this License. under this License, and how to view a copy of this License.
If the interface presents a list of user commands or options, such as a menu, a If the interface presents a list of user commands or options, such as a menu, a
prominent item in the list meets this criterion. prominent item in the list meets this criterion.
### 1. Source Code. ### 1. Source Code.
The *source code* for a work means the preferred form of the work for making The _source code_ for a work means the preferred form of the work for making
modifications to it. *Object code* means any non-source form of a work. modifications to it. _Object code_ means any non-source form of a work.
A *Standard Interface* means an interface that either is an official standard A _Standard Interface_ means an interface that either is an official standard
defined by a recognized standards body, or, in the case of interfaces specified defined by a recognized standards body, or, in the case of interfaces specified
for a particular programming language, one that is widely used among developers for a particular programming language, one that is widely used among developers
working in that language. working in that language.
The *System Libraries* of an executable work include anything, other than the The _System Libraries_ of an executable work include anything, other than the
work as a whole, that (a) is included in the normal form of packaging a Major work as a whole, that (a) is included in the normal form of packaging a Major
Component, but which is not part of that Major Component, and (b) serves only Component, but which is not part of that Major Component, and (b) serves only
to enable use of the work with that Major Component, or to implement a Standard to enable use of the work with that Major Component, or to implement a Standard
Interface for which an implementation is available to the public in source code Interface for which an implementation is available to the public in source code
form. A *Major Component*, in this context, means a major essential component form. A _Major Component_, in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system (if any) on (kernel, window system, and so on) of the specific operating system (if any) on
which the executable work runs, or a compiler used to produce the work, or an which the executable work runs, or a compiler used to produce the work, or an
object code interpreter used to run it. object code interpreter used to run it.
The *Corresponding Source* for a work in object code form means all the source The _Corresponding Source_ for a work in object code form means all the source
code needed to generate, install, and (for an executable work) run the object code needed to generate, install, and (for an executable work) run the object
code and to modify the work, including scripts to control those activities. code and to modify the work, including scripts to control those activities.
However, it does not include the work's System Libraries, or general-purpose However, it does not include the work's System Libraries, or general-purpose
@ -202,26 +203,26 @@ You may convey a work based on the Program, or the modifications to produce it
from the Program, in the form of source code under the terms of section 4, from the Program, in the form of source code under the terms of section 4,
provided that you also meet all of these conditions: provided that you also meet all of these conditions:
- a) The work must carry prominent notices stating that you modified it, and - a) The work must carry prominent notices stating that you modified it, and
giving a relevant date. giving a relevant date.
- b) The work must carry prominent notices stating that it is released under - b) The work must carry prominent notices stating that it is released under
this License and any conditions added under section 7. This requirement this License and any conditions added under section 7. This requirement
modifies the requirement in section 4 to *keep intact all notices*. modifies the requirement in section 4 to _keep intact all notices_.
- c) You must license the entire work, as a whole, under this License to - c) You must license the entire work, as a whole, under this License to
anyone who comes into possession of a copy. This License will therefore anyone who comes into possession of a copy. This License will therefore
apply, along with any applicable section 7 additional terms, to the whole apply, along with any applicable section 7 additional terms, to the whole
of the work, and all its parts, regardless of how they are packaged. This of the work, and all its parts, regardless of how they are packaged. This
License gives no permission to license the work in any other way, but it License gives no permission to license the work in any other way, but it
does not invalidate such permission if you have separately received it. does not invalidate such permission if you have separately received it.
- d) If the work has interactive user interfaces, each must display - d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your work need interfaces that do not display Appropriate Legal Notices, your work need
not make them do so. not make them do so.
A compilation of a covered work with other separate and independent works, A compilation of a covered work with other separate and independent works,
which are not by their nature extensions of the covered work, and which are not which are not by their nature extensions of the covered work, and which are not
combined with it such as to form a larger program, in or on a volume of a combined with it such as to form a larger program, in or on a volume of a
storage or distribution medium, is called an *aggregate* if the compilation and storage or distribution medium, is called an _aggregate_ if the compilation and
its resulting copyright are not used to limit the access or legal rights of the its resulting copyright are not used to limit the access or legal rights of the
compilation's users beyond what the individual works permit. Inclusion of a compilation's users beyond what the individual works permit. Inclusion of a
covered work in an aggregate does not cause this License to apply to the other covered work in an aggregate does not cause this License to apply to the other
@ -233,61 +234,61 @@ You may convey a covered work in object code form under the terms of sections 4
and 5, provided that you also convey the machine-readable Corresponding Source and 5, provided that you also convey the machine-readable Corresponding Source
under the terms of this License, in one of these ways: under the terms of this License, in one of these ways:
- a) Convey the object code in, or embodied in, a physical product (including - a) Convey the object code in, or embodied in, a physical product (including
a physical distribution medium), accompanied by the Corresponding Source a physical distribution medium), accompanied by the Corresponding Source
fixed on a durable physical medium customarily used for software fixed on a durable physical medium customarily used for software
interchange. interchange.
- b) Convey the object code in, or embodied in, a physical product (including - b) Convey the object code in, or embodied in, a physical product (including
a physical distribution medium), accompanied by a written offer, valid for a physical distribution medium), accompanied by a written offer, valid for
at least three years and valid for as long as you offer spare parts or at least three years and valid for as long as you offer spare parts or
customer support for that product model, to give anyone who possesses the customer support for that product model, to give anyone who possesses the
object code either object code either
1. a copy of the Corresponding Source for all the software in the product 1. a copy of the Corresponding Source for all the software in the product
that is covered by this License, on a durable physical medium that is covered by this License, on a durable physical medium
customarily used for software interchange, for a price no more than your customarily used for software interchange, for a price no more than your
reasonable cost of physically performing this conveying of source, or reasonable cost of physically performing this conveying of source, or
2. access to copy the Corresponding Source from a network server at no 2. access to copy the Corresponding Source from a network server at no
charge. charge.
- c) Convey individual copies of the object code with a copy of the written - c) Convey individual copies of the object code with a copy of the written
offer to provide the Corresponding Source. This alternative is allowed only offer to provide the Corresponding Source. This alternative is allowed only
occasionally and noncommercially, and only if you received the object code occasionally and noncommercially, and only if you received the object code
with such an offer, in accord with subsection 6b. with such an offer, in accord with subsection 6b.
- d) Convey the object code by offering access from a designated place - d) Convey the object code by offering access from a designated place
(gratis or for a charge), and offer equivalent access to the Corresponding (gratis or for a charge), and offer equivalent access to the Corresponding
Source in the same way through the same place at no further charge. You Source in the same way through the same place at no further charge. You
need not require recipients to copy the Corresponding Source along with the need not require recipients to copy the Corresponding Source along with the
object code. If the place to copy the object code is a network server, the object code. If the place to copy the object code is a network server, the
Corresponding Source may be on a different server operated by you or a Corresponding Source may be on a different server operated by you or a
third party) that supports equivalent copying facilities, provided you third party) that supports equivalent copying facilities, provided you
maintain clear directions next to the object code saying where to find the maintain clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the Corresponding Corresponding Source. Regardless of what server hosts the Corresponding
Source, you remain obligated to ensure that it is available for as long as Source, you remain obligated to ensure that it is available for as long as
needed to satisfy these requirements. needed to satisfy these requirements.
- e) Convey the object code using peer-to-peer transmission, provided you - e) Convey the object code using peer-to-peer transmission, provided you
inform other peers where the object code and Corresponding Source of the inform other peers where the object code and Corresponding Source of the
work are being offered to the general public at no charge under subsection work are being offered to the general public at no charge under subsection
6d. 6d.
A separable portion of the object code, whose source code is excluded from the A separable portion of the object code, whose source code is excluded from the
Corresponding Source as a System Library, need not be included in conveying the Corresponding Source as a System Library, need not be included in conveying the
object code work. object code work.
A *User Product* is either A _User Product_ is either
1. a *consumer product*, which means any tangible personal property which is 1. a _consumer product_, which means any tangible personal property which is
normally used for personal, family, or household purposes, or normally used for personal, family, or household purposes, or
2. anything designed or sold for incorporation into a dwelling. 2. anything designed or sold for incorporation into a dwelling.
In determining whether a product is a consumer product, doubtful cases shall be In determining whether a product is a consumer product, doubtful cases shall be
resolved in favor of coverage. For a particular product received by a resolved in favor of coverage. For a particular product received by a
particular user, *normally used* refers to a typical or common use of that particular user, _normally used_ refers to a typical or common use of that
class of product, regardless of the status of the particular user or of the way class of product, regardless of the status of the particular user or of the way
in which the particular user actually uses, or expects or is expected to use, in which the particular user actually uses, or expects or is expected to use,
the product. A product is a consumer product regardless of whether the product the product. A product is a consumer product regardless of whether the product
has substantial commercial, industrial or non-consumer uses, unless such uses has substantial commercial, industrial or non-consumer uses, unless such uses
represent the only significant mode of use of the product. represent the only significant mode of use of the product.
*Installation Information* for a User Product means any methods, procedures, _Installation Information_ for a User Product means any methods, procedures,
authorization keys, or other information required to install and execute authorization keys, or other information required to install and execute
modified versions of a covered work in that User Product from a modified modified versions of a covered work in that User Product from a modified
version of its Corresponding Source. The information must suffice to ensure version of its Corresponding Source. The information must suffice to ensure
@ -319,7 +320,7 @@ no special password or key for unpacking, reading or copying.
### 7. Additional Terms. ### 7. Additional Terms.
*Additional permissions* are terms that supplement the terms of this License by _Additional permissions_ are terms that supplement the terms of this License by
making exceptions from one or more of its conditions. Additional permissions making exceptions from one or more of its conditions. Additional permissions
that are applicable to the entire Program shall be treated as though they were that are applicable to the entire Program shall be treated as though they were
included in this License, to the extent that they are valid under applicable included in this License, to the extent that they are valid under applicable
@ -338,25 +339,25 @@ Notwithstanding any other provision of this License, for material you add to a
covered work, you may (if authorized by the copyright holders of that material) covered work, you may (if authorized by the copyright holders of that material)
supplement the terms of this License with terms: supplement the terms of this License with terms:
- a) Disclaiming warranty or limiting liability differently from the terms of - a) Disclaiming warranty or limiting liability differently from the terms of
sections 15 and 16 of this License; or sections 15 and 16 of this License; or
- b) Requiring preservation of specified reasonable legal notices or author - b) Requiring preservation of specified reasonable legal notices or author
attributions in that material or in the Appropriate Legal Notices displayed attributions in that material or in the Appropriate Legal Notices displayed
by works containing it; or by works containing it; or
- c) Prohibiting misrepresentation of the origin of that material, or - c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in reasonable requiring that modified versions of such material be marked in reasonable
ways as different from the original version; or ways as different from the original version; or
- d) Limiting the use for publicity purposes of names of licensors or authors - d) Limiting the use for publicity purposes of names of licensors or authors
of the material; or of the material; or
- e) Declining to grant rights under trademark law for use of some trade - e) Declining to grant rights under trademark law for use of some trade
names, trademarks, or service marks; or names, trademarks, or service marks; or
- f) Requiring indemnification of licensors and authors of that material by - f) Requiring indemnification of licensors and authors of that material by
anyone who conveys the material (or modified versions of it) with anyone who conveys the material (or modified versions of it) with
contractual assumptions of liability to the recipient, for any liability contractual assumptions of liability to the recipient, for any liability
that these contractual assumptions directly impose on those licensors and that these contractual assumptions directly impose on those licensors and
authors. authors.
All other non-permissive additional terms are considered *further restrictions* All other non-permissive additional terms are considered _further restrictions_
within the meaning of section 10. If the Program as you received it, or any within the meaning of section 10. If the Program as you received it, or any
part of it, contains a notice stating that it is governed by this License along part of it, contains a notice stating that it is governed by this License along
with a term that is a further restriction, you may remove that term. If a with a term that is a further restriction, you may remove that term. If a
@ -383,10 +384,10 @@ patent licenses granted under the third paragraph of section 11).
However, if you cease all violation of this License, then your license from a However, if you cease all violation of this License, then your license from a
particular copyright holder is reinstated particular copyright holder is reinstated
- a) provisionally, unless and until the copyright holder explicitly and - a) provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and finally terminates your license, and
- b) permanently, if the copyright holder fails to notify you of the - b) permanently, if the copyright holder fails to notify you of the
violation by some reasonable means prior to 60 days after the cessation. violation by some reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated Moreover, your license from a particular copyright holder is reinstated
permanently if the copyright holder notifies you of the violation by some permanently if the copyright holder notifies you of the violation by some
@ -417,7 +418,7 @@ license from the original licensors, to run, modify and propagate that work,
subject to this License. You are not responsible for enforcing compliance by subject to this License. You are not responsible for enforcing compliance by
third parties with this License. third parties with this License.
An *entity transaction* is a transaction transferring control of an An _entity transaction_ is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered work organization, or merging organizations. If propagation of a covered work
results from an entity transaction, each party to that transaction who receives results from an entity transaction, each party to that transaction who receives
@ -437,16 +438,16 @@ portion of it.
### 11. Patents. ### 11. Patents.
A *contributor* is a copyright holder who authorizes use under this License of A _contributor_ is a copyright holder who authorizes use under this License of
the Program or a work on which the Program is based. The work thus licensed is the Program or a work on which the Program is based. The work thus licensed is
called the contributor's *contributor version*. called the contributor's _contributor version_.
A contributor's *essential patent claims* are all patent claims owned or A contributor's _essential patent claims_ are all patent claims owned or
controlled by the contributor, whether already acquired or hereafter acquired, controlled by the contributor, whether already acquired or hereafter acquired,
that would be infringed by some manner, permitted by this License, of making, that would be infringed by some manner, permitted by this License, of making,
using, or selling its contributor version, but do not include claims that would using, or selling its contributor version, but do not include claims that would
be infringed only as a consequence of further modification of the contributor be infringed only as a consequence of further modification of the contributor
version. For purposes of this definition, *control* includes the right to grant version. For purposes of this definition, _control_ includes the right to grant
patent sublicenses in a manner consistent with the requirements of this patent sublicenses in a manner consistent with the requirements of this
License. License.
@ -455,10 +456,10 @@ license under the contributor's essential patent claims, to make, use, sell,
offer for sale, import and otherwise run, modify and propagate the contents of offer for sale, import and otherwise run, modify and propagate the contents of
its contributor version. its contributor version.
In the following three paragraphs, a *patent license* is any express agreement In the following three paragraphs, a _patent license_ is any express agreement
or commitment, however denominated, not to enforce a patent (such as an express or commitment, however denominated, not to enforce a patent (such as an express
permission to practice a patent or covenant not to sue for patent permission to practice a patent or covenant not to sue for patent
infringement). To *grant* such a patent license to a party means to make such infringement). To _grant_ such a patent license to a party means to make such
an agreement or commitment not to enforce a patent against the party. an agreement or commitment not to enforce a patent against the party.
If you convey a covered work, knowingly relying on a patent license, and the If you convey a covered work, knowingly relying on a patent license, and the
@ -466,13 +467,13 @@ Corresponding Source of the work is not available for anyone to copy, free of
charge and under the terms of this License, through a publicly available charge and under the terms of this License, through a publicly available
network server or other readily accessible means, then you must either network server or other readily accessible means, then you must either
1. cause the Corresponding Source to be so available, or 1. cause the Corresponding Source to be so available, or
2. arrange to deprive yourself of the benefit of the patent license for this 2. arrange to deprive yourself of the benefit of the patent license for this
particular work, or particular work, or
3. arrange, in a manner consistent with the requirements of this License, to 3. arrange, in a manner consistent with the requirements of this License, to
extend the patent license to downstream recipients. extend the patent license to downstream recipients.
*Knowingly relying* means you have actual knowledge that, but for the patent _Knowingly relying_ means you have actual knowledge that, but for the patent
license, your conveying the covered work in a country, or your recipient's use license, your conveying the covered work in a country, or your recipient's use
of the covered work in a country, would infringe one or more identifiable of the covered work in a country, would infringe one or more identifiable
patents in that country that you have reason to believe are valid. patents in that country that you have reason to believe are valid.
@ -484,7 +485,7 @@ them to use, propagate, modify or convey a specific copy of the covered work,
then the patent license you grant is automatically extended to all recipients then the patent license you grant is automatically extended to all recipients
of the covered work and works based on it. of the covered work and works based on it.
A patent license is *discriminatory* if it does not include within the scope of A patent license is _discriminatory_ if it does not include within the scope of
its coverage, prohibits the exercise of, or is conditioned on the non-exercise its coverage, prohibits the exercise of, or is conditioned on the non-exercise
of one or more of the rights that are specifically granted under this License. of one or more of the rights that are specifically granted under this License.
You may not convey a covered work if you are a party to an arrangement with a You may not convey a covered work if you are a party to an arrangement with a
@ -494,11 +495,11 @@ conveying the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory patent parties who would receive the covered work from you, a discriminatory patent
license license
- a) in connection with copies of the covered work conveyed by you (or copies - a) in connection with copies of the covered work conveyed by you (or copies
made from those copies), or made from those copies), or
- b) primarily for and in connection with specific products or compilations - b) primarily for and in connection with specific products or compilations
that contain the covered work, unless you entered into that arrangement, or that contain the covered work, unless you entered into that arrangement, or
that patent license was granted, prior to 28 March 2007. that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting any implied Nothing in this License shall be construed as excluding or limiting any implied
license or other defenses to infringement that may otherwise be available to license or other defenses to infringement that may otherwise be available to
@ -534,8 +535,8 @@ spirit to the present version, but may differ in detail to address new problems
or concerns. or concerns.
Each version is given a distinguishing version number. If the Program specifies Each version is given a distinguishing version number. If the Program specifies
that a certain numbered version of the GNU General Public License *or any later that a certain numbered version of the GNU General Public License _or any later
version* applies to it, you have the option of following the terms and version_ applies to it, you have the option of following the terms and
conditions either of that numbered version or of any later version published by conditions either of that numbered version or of any later version published by
the Free Software Foundation. If the Program does not specify a version number the Free Software Foundation. If the Program does not specify a version number
of the GNU General Public License, you may choose any version ever published by of the GNU General Public License, you may choose any version ever published by
@ -554,7 +555,7 @@ holder as a result of your choosing to follow a later version.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE
LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER
PARTIES PROVIDE THE PROGRAM *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER PARTIES PROVIDE THE PROGRAM _AS IS_ WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE
QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
@ -580,7 +581,7 @@ apply local law that most closely approximates an absolute waiver of all civil
liability in connection with the Program, unless a warranty or assumption of liability in connection with the Program, unless a warranty or assumption of
liability accompanies a copy of the Program in return for a fee. liability accompanies a copy of the Program in return for a fee.
## END OF TERMS AND CONDITIONS ### ## END OF TERMS AND CONDITIONS
### How to Apply These Terms to Your New Programs ### How to Apply These Terms to Your New Programs
@ -590,41 +591,41 @@ which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach To do so, attach the following notices to the program. It is safest to attach
them to the start of each source file to most effectively state the exclusion them to the start of each source file to most effectively state the exclusion
of warranty; and each file should have at least the *copyright* line and a of warranty; and each file should have at least the _copyright_ line and a
pointer to where the full notice is found. pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.> <one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author> Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail. Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short notice like If the program does terminal interaction, make it output a short notice like
this when it starts in an interactive mode: this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author> <program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details. under certain conditions; type `show c' for details.
The hypothetical commands `show w` and `show c` should show the appropriate The hypothetical commands `show w` and `show c` should show the appropriate
parts of the General Public License. Of course, your program's commands might parts of the General Public License. Of course, your program's commands might
be different; for a GUI interface, you would use an *about box*. be different; for a GUI interface, you would use an _about box_.
You should also get your employer (if you work as a programmer) or school, if You should also get your employer (if you work as a programmer) or school, if
any, to sign a *copyright disclaimer* for the program, if necessary. For more any, to sign a _copyright disclaimer_ for the program, if necessary. For more
information on this, and how to apply and follow the GNU GPL, see information on this, and how to apply and follow the GNU GPL, see
[http://www.gnu.org/licenses/](http://www.gnu.org/licenses/). [http://www.gnu.org/licenses/](http://www.gnu.org/licenses/).

View file

@ -7,7 +7,9 @@ export const starsCommand = async (
await i.deferReply(); await i.deferReply();
/* CHANGEME */ /* CHANGEME */
const count = await fetch('https://api.github.com/repos/PrismLauncher/PrismLauncher') const count = await fetch(
'https://api.github.com/repos/PrismLauncher/PrismLauncher'
)
.then((r) => r.json() as Promise<{ stargazers_count: number }>) .then((r) => r.json() as Promise<{ stargazers_count: number }>)
.then((j) => j.stargazers_count); .then((j) => j.stargazers_count);

View file

@ -167,7 +167,7 @@ const optifineAnalyzer: Analyzer = async (text) => {
if (matchesOpti || matchesOptiFabric) { if (matchesOpti || matchesOptiFabric) {
return [ return [
'Possible Optifine Problems', 'Possible Optifine Problems',
'OptiFine is known to cause problems when paired with other mods. Try to disable OptiFine and see if the issue persists.\nCheck \`/tag optifine\` for more info & alternatives you can use.', 'OptiFine is known to cause problems when paired with other mods. Try to disable OptiFine and see if the issue persists.\nCheck `/tag optifine` for more info & alternatives you can use.',
]; ];
} }
return null; return null;
@ -230,7 +230,7 @@ export async function parseLog(s: string): Promise<EmbedBuilder | null> {
const embed = new EmbedBuilder() const embed = new EmbedBuilder()
.setTitle('pastebin.com detected') .setTitle('pastebin.com detected')
.setDescription( .setDescription(
'Please use https://mclo.gs or another paste provider and send logs using the Log Upload feature in Prism Launcher. (See \`/tag log\`)' 'Please use https://mclo.gs or another paste provider and send logs using the Log Upload feature in Prism Launcher. (See `/tag log`)'
) )
.setColor(COLORS.red); .setColor(COLORS.red);
return embed; return embed;

View file

@ -84,7 +84,13 @@
{ {
"name": "why", "name": "why",
"text": "https://prismlauncher.org/wiki/overview/faq/#why-did-our-community-choose-to-fork https://prismlauncher.org/news/moving-on/", "text": "https://prismlauncher.org/wiki/overview/faq/#why-did-our-community-choose-to-fork https://prismlauncher.org/news/moving-on/",
"aliases": ["whywasprismlaunchermade", "whywasprismmade", "whywaspolymcmade", "mmcdrama", "devlauncher"] "aliases": [
"whywasprismlaunchermade",
"whywasprismmade",
"whywaspolymcmade",
"mmcdrama",
"devlauncher"
]
}, },
{ {
"name": "whyjava8", "name": "whyjava8",

View file

@ -23,7 +23,9 @@ export async function getLatestMinecraftVersion(): Promise<string> {
// TODO: caching // TODO: caching
export async function getLatestPrismLauncherVersion(): Promise<string> { export async function getLatestPrismLauncherVersion(): Promise<string> {
/* CHANGEME */ /* CHANGEME */
const f = await fetch('https://api.github.com/repos/PrismLauncher/PrismLauncher/releases'); const f = await fetch(
'https://api.github.com/repos/PrismLauncher/PrismLauncher/releases'
);
const versions = (await f.json()) as SimplifiedGHReleases[]; const versions = (await f.json()) as SimplifiedGHReleases[];
return versions[0].tag_name; return versions[0].tag_name;