Rebrand and fix links and tags (#5)

Co-authored-by: Kedas <m@yarn.network>
Co-authored-by: IThundxr <harshdhaliwal9767@gmail.com>
Co-authored-by: IThundxr <contact@ithundxr.dev>
This commit is contained in:
Ryan Cao 2022-10-21 19:59:40 +08:00 committed by GitHub
parent 8d04dd5c97
commit 3e56cecbbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 38 additions and 51 deletions

View file

@ -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

View file

@ -1,3 +1,3 @@
# Roly Poly
# PrismLauncher bot
PolyMC Bot for [Discord](https://discord.gg/ZeN2sncGEn).
PrismLauncher Bot for [Discord](https://discord.gg/prismlauncher).

View file

@ -15,9 +15,6 @@ export const reuploadCommands = async () => {
new SlashCommandBuilder()
.setName('members')
.setDescription('Returns the number of members in the server'),
new SlashCommandBuilder()
.setName('rolypoly')
.setDescription('Rooooooly Pooooooly'),
new SlashCommandBuilder()
.setName('tag')
.setDescription('Send a tag')

View file

@ -7,7 +7,7 @@ export const starsCommand = async (
await i.deferReply();
/* CHANGEME */
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);

View file

@ -14,7 +14,7 @@ export const ETA_MESSAGES = [
'Next month',
'Next year',
'Next week',
'In PolyMC 2.0.0',
'In Prism Launcher 2.0.0',
];
export const COLORS = {

View file

@ -110,11 +110,6 @@ client.on('interactionCreate', async (interaction) => {
await starsCommand(interaction);
} else if (commandName === 'modrinth') {
await modrinthCommand(interaction);
} else if (commandName === 'rolypoly') {
await interaction.reply(
/* CHANGEME */
'https://media.discordapp.net/attachments/985048903126769764/985051373886382100/rollin-time.gif?width=324&height=216'
);
} else if (commandName === 'say') {
if (!interaction.channel) return;

View file

@ -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(/Prism Launcher 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('Prism Launcher 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 Prism Launcher',
`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.",
"Prism Launcher 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 Prism Launcher. (See \`/tag log\`)'
)
.setColor(COLORS.red);
return embed;

View file

@ -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,60 +51,55 @@
"aliases": ["dirs", "locate"],
"embed": {
"title": "Data directories",
"description": "Where PolyMC stores your data (e.g. instances)",
"description": "Where Prism Launcher 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"]
},
{
"name": "rolypoly",
"text": "https://media.discordapp.net/attachments/985048903126769764/985051373886382100/rollin-time.gif?width=324&height=216",
"aliases": ["itsrollintime", "rollintime"]
"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"]
},
{
"name": "whyjava8",
"embed": {
"title": "Why does PolyMC ask me to change java version?",
"title": "Why does Prism Launcher 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"
},
"aliases": ["isjava8ancient", "whyispolyforcingme"]
"aliases": ["isjava8ancient", "whyisprismforcingme"]
},
{
"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 Prism Launcher auto-update?",
"description": "Prism Launcher 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 +108,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 Prism Launcher 1.4.0! Upgrade if you haven't and you'll be able to use it.",
"color": "green"
},
"aliases": ["mod-update", "modupdate"]
@ -122,7 +117,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 Prism Launcher from accessing mod files, and they started to enforce this option lately. We can't allow you to download those mods directly from Prism Launcher, but Prism Launcher 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 +126,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": "Prism Launcher has always been legal, legitimate & appropriate. We don't and never will have features such as offline login without an official account.",
"color": "red"
}
},

View file

@ -13,7 +13,7 @@ interface SimplifiedGHReleases {
export async function getLatestMinecraftVersion(): Promise<string> {
const f = await fetch(
/* CHANGEME */
'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;
@ -21,9 +21,9 @@ export async function getLatestMinecraftVersion(): Promise<string> {
}
// TODO: caching
export async function getLatestPolyMCVersion(): Promise<string> {
export async function getLatestPrismLauncherVersion(): Promise<string> {
/* CHANGEME */
const f = await fetch('https://api.github.com/repos/PolyMC/PolyMC/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;