GlobalBadges: add more client mods
This commit is contained in:
parent
3246aa62d2
commit
02e854ea1b
2 changed files with 58 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue