rebrand polymc
This commit is contained in:
parent
a55623fa68
commit
481b6b24f9
7 changed files with 36 additions and 36 deletions
2
.github/workflows/docker.yml
vendored
2
.github/workflows/docker.yml
vendored
|
@ -19,4 +19,4 @@ jobs:
|
|||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
push: true
|
||||
tags: ghcr.io/polymc/bot:latest
|
||||
tags: ghcr.io/PrismLauncher/bot:latest
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
# Roly Poly
|
||||
|
||||
PolyMC Bot for [Discord](https://discord.gg/ZeN2sncGEn).
|
||||
PrismLauncher Bot for [Discord](https://discord.gg/ZeN2sncGEn).
|
||||
|
|
|
@ -6,7 +6,7 @@ export const starsCommand = async (
|
|||
) => {
|
||||
await i.deferReply();
|
||||
|
||||
const count = await fetch('https://api.github.com/repos/PolyMC/PolyMC')
|
||||
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);
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ export const ETA_MESSAGES = [
|
|||
'Next month',
|
||||
'Next year',
|
||||
'Next week',
|
||||
'In PolyMC 2.0.0',
|
||||
'In PrismLauncher 2.0.0',
|
||||
];
|
||||
|
||||
export const COLORS = {
|
||||
|
|
20
src/logs.ts
20
src/logs.ts
|
@ -1,4 +1,4 @@
|
|||
import { getLatestPolyMCVersion } from './utils/remoteVersions';
|
||||
import { getLatestPrismLauncherVersion } from './utils/remoteVersions';
|
||||
import { EmbedBuilder } from 'discord.js';
|
||||
|
||||
// log providers
|
||||
|
@ -33,14 +33,14 @@ const javaAnalyzer: Analyzer = async (text) => {
|
|||
};
|
||||
|
||||
const versionAnalyzer: Analyzer = async (text) => {
|
||||
const vers = text.match(/PolyMC version: [0-9].[0-9].[0-9]/g);
|
||||
const vers = text.match(/PrismLauncher version: [0-9].[0-9].[0-9]/g);
|
||||
if (vers && vers[0]) {
|
||||
const latest = await getLatestPolyMCVersion();
|
||||
const current = vers[0].replace('PolyMC version: ', '');
|
||||
const latest = await getLatestPrismLauncherVersion();
|
||||
const current = vers[0].replace('PrismLauncher version: ', '');
|
||||
if (current < latest) {
|
||||
return [
|
||||
'Outdated PolyMC',
|
||||
`Your installed version is ${current}, while the newest version is ${latest}.\nPlease update, for more info see https://polymc.org/download/`,
|
||||
'Outdated PrismLauncher',
|
||||
`Your installed version is ${current}, while the newest version is ${latest}.\nPlease update, for more info see https://PrismLauncher.org/download/`,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ const intelHDAnalyzer: Analyzer = async (text) => {
|
|||
if (text.includes('org.lwjgl.LWJGLException: Pixel format not accelerated')) {
|
||||
return [
|
||||
'Intel HD Windows 10',
|
||||
"Your drivers don't support windows 10 officially\nSee https://polymc.org/wiki/getting-started/installing-java/#a-note-about-intel-hd-20003000-on-windows-10 for more info",
|
||||
"Your drivers don't support windows 10 officially\nSee https://PrismLauncher.org/wiki/getting-started/installing-java/#a-note-about-intel-hd-20003000-on-windows-10 for more info",
|
||||
];
|
||||
}
|
||||
return null;
|
||||
|
@ -94,7 +94,7 @@ const macOSNSWindowAnalyzer: Analyzer = async (text) => {
|
|||
) {
|
||||
return [
|
||||
'MacOS NSInternalInconsistencyException',
|
||||
'You need to downgrade your Java 8 version. See https://polymc.org/wiki/getting-started/installing-java/#older-minecraft-on-macos',
|
||||
'You need to downgrade your Java 8 version. See https://PrismLauncher.org/wiki/getting-started/installing-java/#older-minecraft-on-macos',
|
||||
];
|
||||
}
|
||||
return null;
|
||||
|
@ -195,7 +195,7 @@ const tempM1Analyzer: Analyzer = async (text) => {
|
|||
if (lwjglFail && m1) {
|
||||
return [
|
||||
'M1 issues',
|
||||
"PolyMC doesn't support Apple M1 for sub-1.19 versions yet. Use ManyMC https://github.com/MinecraftMachina/ManyMC.",
|
||||
"PrismLauncher doesn't support Apple M1 for sub-1.19 versions yet. Use ManyMC https://github.com/MinecraftMachina/ManyMC.",
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -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 PolyMC. (See \`/tag log\`)'
|
||||
'Please use https://mclo.gs or another paste provider and send logs using the Log Upload feature in PrismLauncher. (See \`/tag log\`)'
|
||||
)
|
||||
.setColor(COLORS.red);
|
||||
return embed;
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
[
|
||||
{
|
||||
"name": "migrate",
|
||||
"text": "https://polymc.org/wiki/getting-started/migrating-multimc/",
|
||||
"text": "https://PrismLauncher.org/wiki/getting-started/migrating-multimc/",
|
||||
"aliases": ["migr", "mmc", "multimc"]
|
||||
},
|
||||
{
|
||||
"name": "thematrix",
|
||||
"text": "https://matrix.to/#/#polymc:matrix.org"
|
||||
"text": "https://matrix.to/#/#PrismLauncher:matrix.org"
|
||||
},
|
||||
{
|
||||
"name": "log",
|
||||
|
@ -24,7 +24,7 @@
|
|||
"embed": {
|
||||
"color": "green",
|
||||
"title": "OptiFine",
|
||||
"description": "OptiFine is known to cause problems when paired with other mods.\nPlease see [Installing OptiFine Alternatives](https://polymc.org/wiki/getting-started/install-of-alternatives/).\nIf you really want to use OptiFine, see [Installing OptiFine](https://polymc.org/wiki/getting-started/installing-optifine/)"
|
||||
"description": "OptiFine is known to cause problems when paired with other mods.\nPlease see [Installing OptiFine Alternatives](https://PrismLauncher.org/wiki/getting-started/install-of-alternatives/).\nIf you really want to use OptiFine, see [Installing OptiFine](https://PrismLauncher.org/wiki/getting-started/installing-optifine/)"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -38,7 +38,7 @@
|
|||
},
|
||||
{
|
||||
"name": "java",
|
||||
"text": "https://polymc.org/wiki/getting-started/installing-java/",
|
||||
"text": "https://PrismLauncher.org/wiki/getting-started/installing-java/",
|
||||
"aliases": ["j"]
|
||||
},
|
||||
{
|
||||
|
@ -51,40 +51,40 @@
|
|||
"aliases": ["dirs", "locate"],
|
||||
"embed": {
|
||||
"title": "Data directories",
|
||||
"description": "Where PolyMC stores your data (e.g. instances)",
|
||||
"description": "Where PrismLauncher stores your data (e.g. instances)",
|
||||
"color": "blue",
|
||||
"fields": [
|
||||
{
|
||||
"name": "Portable (Windows / Linux)",
|
||||
"value": "In the PolyMC folder"
|
||||
"value": "In the PrismLauncher folder"
|
||||
},
|
||||
{
|
||||
"name": "Windows",
|
||||
"value": "`%APPDATA%/PolyMC`"
|
||||
"value": "`%APPDATA%/PrismLauncher`"
|
||||
},
|
||||
{
|
||||
"name": "macOS",
|
||||
"value": "`~/Library/Application Support/PolyMC`"
|
||||
"value": "`~/Library/Application Support/PrismLauncher`"
|
||||
},
|
||||
{
|
||||
"name": "Linux",
|
||||
"value": "`~/.local/share/PolyMC`"
|
||||
"value": "`~/.local/share/PrismLauncher`"
|
||||
},
|
||||
{
|
||||
"name": "Flatpak",
|
||||
"value": "`~/.var/app/org.polymc.PolyMC/data/PolyMC`"
|
||||
"value": "`~/.var/app/org.PrismLauncher.PrismLauncher/data/PrismLauncher`"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "build",
|
||||
"text": "https://polymc.org/wiki/development/build-instructions/"
|
||||
"text": "https://PrismLauncher.org/wiki/development/build-instructions/"
|
||||
},
|
||||
{
|
||||
"name": "why",
|
||||
"text": "https://polymc.org/wiki/overview/faq/#why-did-our-community-choose-to-fork https://polymc.org/news/moving-on/",
|
||||
"aliases": ["whywaspolymcmade", "mmcdrama", "devlauncher"]
|
||||
"text": "https://PrismLauncher.org/wiki/overview/faq/#why-did-our-community-choose-to-fork https://PrismLauncher.org/news/moving-on/",
|
||||
"aliases": ["whywasPrismLaunchermade", "mmcdrama", "devlauncher"]
|
||||
},
|
||||
{
|
||||
"name": "rolypoly",
|
||||
|
@ -94,7 +94,7 @@
|
|||
{
|
||||
"name": "whyjava8",
|
||||
"embed": {
|
||||
"title": "Why does PolyMC ask me to change java version?",
|
||||
"title": "Why does PrismLauncher ask me to change java version?",
|
||||
"description": "Minecraft versions before 1.17 required Java 8 and have issues with newer java, while newer versions require Java 17, so you need to change java version. Some people think Java 8 is very outdated, but it's actually an LTS, it's still getting updates. If one of your mods is weird and requires newer java, you can bypass this going to instance settings-Java and ticking 'Skip java compatibility checks', but be aware of potential issues, such as [random CMEs](https://bugs.mojang.com/browse/MC-149777).",
|
||||
"color": "orange"
|
||||
},
|
||||
|
@ -103,8 +103,8 @@
|
|||
{
|
||||
"name": "update",
|
||||
"embed": {
|
||||
"title": "Does PolyMC auto-update?",
|
||||
"description": "PolyMC auto-updates for macOS using the Sparkle Framework.\n\nWindows auto-updating is WIP for now, you will need to download the installer and run it again. (You will not lose your instances.)\n\nFor Linux, just use your package manager!",
|
||||
"title": "Does PrismLauncher auto-update?",
|
||||
"description": "PrismLauncher auto-updates for macOS using the Sparkle Framework.\n\nWindows auto-updating is WIP for now, you will need to download the installer and run it again. (You will not lose your instances.)\n\nFor Linux, just use your package manager!",
|
||||
"color": "blue"
|
||||
},
|
||||
"aliases": ["updating", "autoupdate"]
|
||||
|
@ -113,7 +113,7 @@
|
|||
"name": "modupdater",
|
||||
"embed": {
|
||||
"title": "Mod updater",
|
||||
"description": "Mod updating has been introduced in PolyMC 1.4.0! Upgrade if you haven't and you'll be able to use it.",
|
||||
"description": "Mod updating has been introduced in PrismLauncher 1.4.0! Upgrade if you haven't and you'll be able to use it.",
|
||||
"color": "green"
|
||||
},
|
||||
"aliases": ["mod-update", "modupdate"]
|
||||
|
@ -122,7 +122,7 @@
|
|||
"name": "curseforge",
|
||||
"embed": {
|
||||
"title": "What's wrong with CurseForge?",
|
||||
"description": "CurseForge added a new option to block third party clients like PolyMC from accessing mod files, and they started to enforce this option lately. We can't allow you to download those mods directly from PolyMC, but PolyMC 1.3.1 and higher have a workaround to let modpacks work: letting you to download those opted out mods manually. We highly encourage asking authors that opted out to stop doing so.",
|
||||
"description": "CurseForge added a new option to block third party clients like PrismLauncher from accessing mod files, and they started to enforce this option lately. We can't allow you to download those mods directly from PrismLauncher, but PrismLauncher 1.3.1 and higher have a workaround to let modpacks work: letting you to download those opted out mods manually. We highly encourage asking authors that opted out to stop doing so.",
|
||||
"color": "orange"
|
||||
},
|
||||
"aliases": ["cf", "curse", "cursed", "cursedfrog"]
|
||||
|
@ -131,7 +131,7 @@
|
|||
"name": "piracy",
|
||||
"embed": {
|
||||
"title": "We don't tolerate piracy!",
|
||||
"description": "PolyMC has always been legal, legitimate & appropriate. We don't and never will have features such as offline login without an official account.",
|
||||
"description": "PrismLauncher has always been legal, legitimate & appropriate. We don't and never will have features such as offline login without an official account.",
|
||||
"color": "red"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -12,7 +12,7 @@ interface SimplifiedGHReleases {
|
|||
// TODO: caching
|
||||
export async function getLatestMinecraftVersion(): Promise<string> {
|
||||
const f = await fetch(
|
||||
'https://meta.polymc.org/v1/net.minecraft/package.json'
|
||||
'https://meta.PrismLauncher.org/v1/net.minecraft/package.json'
|
||||
);
|
||||
|
||||
const minecraft = (await f.json()) as MetaPackage;
|
||||
|
@ -20,8 +20,8 @@ export async function getLatestMinecraftVersion(): Promise<string> {
|
|||
}
|
||||
|
||||
// TODO: caching
|
||||
export async function getLatestPolyMCVersion(): Promise<string> {
|
||||
const f = await fetch('https://api.github.com/repos/PolyMC/PolyMC/releases');
|
||||
export async function getLatestPrismLauncherVersion(): Promise<string> {
|
||||
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