GlobalBadges: add more client mods

This commit is contained in:
thororen1234 2026-07-02 23:10:05 -04:00
parent 3246aa62d2
commit 02e854ea1b
No known key found for this signature in database
2 changed files with 58 additions and 1 deletions

View file

@ -84,6 +84,48 @@ export const settings = definePluginSettings({
default: true,
restartNeeded: false
},
showBunny: {
type: OptionType.BOOLEAN,
description: "Show Bunny Badges",
default: true,
restartNeeded: false
},
showGooseMod: {
type: OptionType.BOOLEAN,
description: "Show GooseMod Badges",
default: true,
restartNeeded: false
},
showReplugged: {
type: OptionType.BOOLEAN,
description: "Show Replugged Badges",
default: true,
restartNeeded: false
},
showBetterDiscord: {
type: OptionType.BOOLEAN,
description: "Show BetterDiscord Badges",
default: true,
restartNeeded: false
},
showVendroidEnhanced: {
type: OptionType.BOOLEAN,
description: "Show Vendroid Enhanced Badges",
default: true,
restartNeeded: false
},
showRevenge: {
type: OptionType.BOOLEAN,
description: "Show Revenge Badges",
default: true,
restartNeeded: false
},
showReCord: {
type: OptionType.BOOLEAN,
description: "Show ReCord Badges",
default: true,
restartNeeded: false
},
apiUrl: {
type: OptionType.STRING,
description: "API to use",

View file

@ -23,6 +23,13 @@ export const serviceMap: Record<string, string> = {
velocity: "Velocity",
enmity: "Enmity",
paicord: "Paicord",
bunny: "Bunny",
goosemod: "GooseMod",
replugged: "Replugged",
betterdiscord: "BetterDiscord",
vendroidenhanced: "VendroidEnhanced",
revenge: "Revenge",
record: "ReCord",
};
const blockedMods = ["vencord", "equicord"];
@ -45,7 +52,15 @@ export async function loadBadges() {
reviewdb: settings.store.showReviewDB,
aliucord: settings.store.showAliucord,
raincord: settings.store.showRaincord,
enmity: settings.store.showEnmity
enmity: settings.store.showEnmity,
paicord: settings.store.showPaicord,
bunny: settings.store.showBunny,
goosemod: settings.store.showGooseMod,
replugged: settings.store.showReplugged,
betterdiscord: settings.store.showBetterDiscord,
vendroidenhanced: settings.store.showVendroidEnhanced,
revenge: settings.store.showRevenge,
record: settings.store.showReCord
};
if (mod in conditionalMods && !conditionalMods[mod]) return false;