diff --git a/README.md b/README.md index d67aa7d..ff26281 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ A collection of plugins for [Revenge](https://github.com/revenge-mod/revenge-bun | --- | --- | --- | --- | | Staff Tags | Rebuilt | OWNER/ADMIN/STAFF/MOD-style tags next to members, computed from real server permissions. Per-tag text, colors, gradients, and visibility. | `https://everestmcarthur.github.io/revenge-plugins/staff-tags/` | | RoleColorEverywhere | Revived | A member's top role color shown in mentions, the typing indicator, voice channel names, member list role headers, and optionally message text. | `https://everestmcarthur.github.io/revenge-plugins/role-color-everywhere/` | -| PronounDB | Revived | Shows a user's pronouns (from pronoundb.org) in their profile. | `https://everestmcarthur.github.io/revenge-plugins/pronoun-db/` | +| PronounDB | Revived | Shows a user's pronouns in their profile, if they've set them at pronoundb.org (nothing to configure in the plugin itself). | `https://everestmcarthur.github.io/revenge-plugins/pronoun-db/` | ### Productivity diff --git a/plugins/pronoun-db/manifest.json b/plugins/pronoun-db/manifest.json index b3efadc..5448138 100644 --- a/plugins/pronoun-db/manifest.json +++ b/plugins/pronoun-db/manifest.json @@ -1,6 +1,6 @@ { "name": "PronounDB", - "description": "Shows a user's pronouns (from pronoundb.org) in their profile.", + "description": "Shows a user's pronouns in their profile, if they've set them at pronoundb.org - see the plugin settings for details.", "authors": [ { "name": "everestmcarthur" } ], diff --git a/plugins/pronoun-db/src/index.tsx b/plugins/pronoun-db/src/index.tsx index 2acd7ac..7823ad5 100644 --- a/plugins/pronoun-db/src/index.tsx +++ b/plugins/pronoun-db/src/index.tsx @@ -3,6 +3,7 @@ import { find } from "@vendetta/metro"; import { after } from "@vendetta/patcher"; import { findInReactTree } from "@vendetta/utils"; import PronounSection from "./ui/PronounSection"; +import Settings from "./ui/Settings"; const UserProfile = find((m: any) => m?.type?.name === "UserProfile"); @@ -40,5 +41,6 @@ export default { logger.error(`[PronounDB] Failed to apply the profile patch: ${e}`); } }, - onUnload: () => unpatch() + onUnload: () => unpatch(), + settings: Settings }; diff --git a/plugins/pronoun-db/src/ui/Settings.tsx b/plugins/pronoun-db/src/ui/Settings.tsx new file mode 100644 index 0000000..ba3e15b --- /dev/null +++ b/plugins/pronoun-db/src/ui/Settings.tsx @@ -0,0 +1,40 @@ +import { ReactNative } from "@vendetta/metro/common"; +import { Forms } from "@vendetta/ui/components"; + +const { ScrollView, View, TouchableOpacity, Linking } = ReactNative; +const { FormSection, FormText } = Forms; + +const PRONOUNDB_URL = "https://pronoundb.org/"; + +export default function Settings() { + return ( + + + + + This plugin doesn't have anything to configure here - there's no API key or toggle, + because pronouns aren't Discord data. They come from PronounDB, a separate service + where people manually set their own pronouns and link the profile to their Discord + account. + + + That means a user's pronouns will only show up if THEY set them at pronoundb.org - not + because of anything you enable here. If you want your own pronouns to show up for + other people running this plugin, set them yourself at the link below. + + Linking.openURL(PRONOUNDB_URL)} + style={{ + backgroundColor: "#5865F2", + borderRadius: 8, + padding: 12, + alignItems: "center" + }} + > + Open pronoundb.org + + + + + ); +} diff --git a/site/meta.json b/site/meta.json index 0d64eef..18eb87f 100644 --- a/site/meta.json +++ b/site/meta.json @@ -12,7 +12,7 @@ "pronoun-db": { "category": "Identity", "status": "revived", - "note": "Previously broken because PronounDB shut down the API it used (HTTP 410). Migrated to PronounDB's current v2 API." + "note": "Previously broken because PronounDB shut down the API it used (HTTP 410) - migrated to their current v2 API. Requires people to have set pronouns at pronoundb.org; nothing to configure in the plugin itself." }, "message-snippets": { "category": "Productivity",