fix formatting
This commit is contained in:
parent
3e56cecbbf
commit
13effc58fe
5 changed files with 164 additions and 153 deletions
|
@ -7,7 +7,9 @@ export const starsCommand = async (
|
|||
await i.deferReply();
|
||||
|
||||
/* 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((j) => j.stargazers_count);
|
||||
|
||||
|
|
|
@ -167,7 +167,7 @@ const optifineAnalyzer: Analyzer = async (text) => {
|
|||
if (matchesOpti || matchesOptiFabric) {
|
||||
return [
|
||||
'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;
|
||||
|
@ -230,7 +230,7 @@ export async function parseLog(s: string): Promise<EmbedBuilder | null> {
|
|||
const embed = new EmbedBuilder()
|
||||
.setTitle('pastebin.com detected')
|
||||
.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);
|
||||
return embed;
|
||||
|
|
|
@ -84,7 +84,13 @@
|
|||
{
|
||||
"name": "why",
|
||||
"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",
|
||||
|
|
|
@ -23,7 +23,9 @@ export async function getLatestMinecraftVersion(): Promise<string> {
|
|||
// TODO: caching
|
||||
export async function getLatestPrismLauncherVersion(): Promise<string> {
|
||||
/* 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[];
|
||||
|
||||
return versions[0].tag_name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue