Fix Formatting

This commit is contained in:
thororen1234 2025-05-02 21:07:44 -04:00
parent b140cc0d39
commit e6ab96a3ee
No known key found for this signature in database

View file

@ -41,14 +41,16 @@ export default definePlugin({
// Make discord actually use our tags // Make discord actually use our tags
{ {
find: ".STAFF_ONLY_DM:", find: ".STAFF_ONLY_DM:",
replacement: [{ replacement: [
match: /(?<=type:(\i).{10,1000}.REMIX.{10,100})default:(\i)=/, {
replace: "default:$2=$self.getTagText($self.localTags[$1]);", match: /(?<=type:(\i).{10,1000}.REMIX.{10,100})default:(\i)=/,
}, { replace: "default:$2=$self.getTagText($self.localTags[$1]);",
match: /(?<=type:(\i).{10,1000}.REMIX.{10,100})\.BOT:(?=default:)/, },
replace: "$&return null;", {
predicate: () => settings.store.dontShowBotTag match: /(?<=type:(\i).{10,1000}.REMIX.{10,100})\.BOT:(?=default:)/,
}, replace: "$&return null;",
predicate: () => settings.store.dontShowBotTag
},
], ],
} }
], ],