Pronouns labels on Bluesky

simplify pronouns record type

Changed files
+59 -223
src
+56 -220
src/constants.ts
···
import "dotenv/config";
-
export const PRONOUNS: Record<string, { post: string; id?: string }> = {
-
"3kwsqucto3j2a": {
-
post: "Like this post to delete your labels",
-
},
-
"3kwss4ldkwd2j": {
-
post: "they/them",
-
id: "they",
-
},
-
"3kwss4fmiow2n": {
-
post: "it/its",
-
id: "it",
-
},
-
"3kwss4bzqlw2k": {
-
post: "he/him",
-
id: "he",
-
},
-
"3kwss45mxrh2j": {
-
post: "she/her",
-
id: "she",
-
},
-
"3kwst2tn2342f": {
-
post: "look at bio",
-
id: "bio",
-
},
-
"3kwsslg3gqk2t": {
-
post: "avoid",
-
id: "avoid",
-
},
-
"3kwssldhzme27": {
-
post: "ask",
-
id: "ask",
-
},
-
"3kwss4vc4cw2x": {
-
post: "any/all",
-
id: "any",
-
},
-
"3kwu55hxj4b2a": {
-
post: "fae/faer",
-
id: "fae",
-
},
-
"3kwu5d6rq352v": {
-
post: "bun/buns",
-
id: "bun",
-
},
-
"3kwu5s4lt6f2k": {
-
post: "xe/xir",
-
id: "xe",
-
},
-
"3kwu5sjyg4m2f": {
-
post: "drae/draer",
-
id: "drae",
-
},
-
"3kwu5stootb2q": {
-
post: "e/em/eir",
-
id: "e",
-
},
-
"3kwu5taglmr2q": {
-
post: "sier/siehn/siere",
-
id: "sier",
-
},
-
"3kwu6b3cnd52k": {
-
post: "ey/em/eir",
-
id: "ey",
-
},
-
"3kwu7n26cgm2m": {
-
post: "shey/sheir/sher",
-
id: "shey",
-
},
-
"3kwue4lqwjb2q": {
-
post: "voi/void",
-
id: "voi",
-
},
-
"3kwueewr2p22j": {
-
post: "mew/mews",
-
id: "mew",
-
},
-
"3kwukwwz4nt2j": {
-
post: "paw/paws",
-
id: "paw",
-
},
-
"3kwuv4vxgwu2n": {
-
post: "kit/kits",
-
id: "kit",
-
},
-
"3kwuv56n4jv2g": {
-
post: "zie/zir",
-
id: "zie",
-
},
-
"3kwuvaelsru2m": {
-
post: "ae/aer",
-
id: "ae",
-
},
-
"3kwv2d6oguw2n": {
-
post: "prince/princes/princeself",
-
id: "prince",
-
},
-
"3kwvcc736wg2n": {
-
post: "ze/hir",
-
id: "ze",
-
},
-
"3kwwwvsvcnz2h": {
-
post: "dey/deren",
-
id: "dey",
-
},
-
"3kwxljuxooh2r": {
-
post: "none",
-
id: "none",
-
},
-
"3kwzimwll6j2q": {
-
post: "e/em/er",
-
id: "e-em-er",
-
},
-
"3kwzmcaue3e22": {
-
post: "xier/xies",
-
id: "xier",
-
},
-
"3kwzmclqnud2t": {
-
post: "sier/sies",
-
id: "sier-sies",
-
},
-
"3kx22bkmnco2t": {
-
post: "ens/ens",
-
id: "ens",
-
},
-
"3kx45q2fq372f": {
-
post: "squee/squir",
-
id: "squee",
-
},
-
"3kx4puqpu5q2j": {
-
post: "vi/vix",
-
id: "vi",
-
},
-
"3kxntgh45yy2j": {
-
post: "ne/nem/nir",
-
id: "ne-nem-nir",
-
},
-
"3kxqmnktb532k": {
-
post: "ze/zim",
-
id: "ze-zim",
-
},
-
"3kxsppngl4e2a": {
-
post: "pup/pups/pupself",
-
id: "pup-pups-pupself",
-
},
-
"3kxvjiundpz2r": {
-
post: "zi/zir",
-
id: "zi-zir",
-
},
-
"3kxvjixhmhh2g": {
-
post: "he/haw",
-
id: "he-haw",
-
},
-
"3kxwujilwty2m": {
-
post: "hee/haw",
-
id: "hee-haw",
-
},
-
"3kxy7b27dke2w": {
-
post: "zhi/zhr",
-
id: "zhi-zhr",
-
},
-
"3ky7xcoqkza2q": {
-
post: "ve/ver",
-
id: "ve-ver",
-
},
-
"3kygr2mke2t2z": {
-
post: "sí/hir",
-
id: "si-hir",
-
},
-
"3kyikdvmeff2g": {
-
post: "she/we",
-
id: "she-we",
-
},
-
"3kyikdz4eau2a": {
-
post: "he/we",
-
id: "he-we",
-
},
-
"3kyike4fibu2k": {
-
post: "they/we",
-
id: "they-we",
-
},
-
"3kyilq67fyv2a": {
-
post: "xe/xem",
-
id: "xe-xem",
-
},
-
"3kzfbgd3jpz2k": {
-
post: "sun/suns",
-
id: "sun-suns",
-
},
-
"3kzfbgi7is225": {
-
post: "leaf/leafs",
-
id: "leaf-leafs",
-
},
-
"3kzftskynd32l": {
-
post: "shiv/ver",
-
id: "shiv-ver",
-
},
-
"3l2jb2koecj27": {
-
post: "ferret/ferrets/ferretself",
-
id: "ferret-ferrets",
-
},
-
"3l2kx6qwefk2h": {
-
post: "drüsshe/drayr",
-
id: "drusshe-drayr",
-
},
-
"3l2xlzk6lrx2r": {
-
post: "frog/frogs",
-
id: "frog-frogs",
-
},
-
"3l2xlzt6v5z2x": {
-
post: "rat/rats",
-
id: "rat-rats",
-
},
-
"3l2zv7xcpq62u": {
-
post: "shark/sharks",
-
id: "shark-sharks",
-
},
-
"3l32xb7nvgh2x": {
-
post: "name/proper nouns",
-
id: "proper-nouns",
-
},
+
export const PRONOUNS: Record<string, string> = {
+
"3kwsqucto3j2a": "delete",
+
"3kwss4ldkwd2j": "they",
+
"3kwss4fmiow2n": "it",
+
"3kwss4bzqlw2k": "he",
+
"3kwss45mxrh2j": "she",
+
"3kwst2tn2342f": "bio",
+
"3kwsslg3gqk2t": "avoid",
+
"3kwssldhzme27": "ask",
+
"3kwss4vc4cw2x": "any",
+
"3kwu55hxj4b2a": "fae",
+
"3kwu5d6rq352v": "bun",
+
"3kwu5s4lt6f2k": "xe",
+
"3kwu5sjyg4m2f": "drae",
+
"3kwu5stootb2q": "e",
+
"3kwu5taglmr2q": "sier",
+
"3kwu6b3cnd52k": "ey",
+
"3kwu7n26cgm2m": "shey",
+
"3kwue4lqwjb2q": "voi",
+
"3kwueewr2p22j": "mew",
+
"3kwukwwz4nt2j": "paw",
+
"3kwuv4vxgwu2n": "kit",
+
"3kwuv56n4jv2g": "zie",
+
"3kwuvaelsru2m": "ae",
+
"3kwv2d6oguw2n": "prince",
+
"3kwvcc736wg2n": "ze",
+
"3kwwwvsvcnz2h": "dey",
+
"3kwxljuxooh2r": "none",
+
"3kwzimwll6j2q": "e-em-er",
+
"3kwzmcaue3e22": "xier",
+
"3kwzmclqnud2t": "sier-sies",
+
"3kx22bkmnco2t": "ens",
+
"3kx45q2fq372f": "squee",
+
"3kx4puqpu5q2j": "vi",
+
"3kxntgh45yy2j": "ne-nem-nir",
+
"3kxqmnktb532k": "ze-zim",
+
"3kxsppngl4e2a": "pup-pups-pupself",
+
"3kxvjiundpz2r": "zi-zir",
+
"3kxvjixhmhh2g": "he-haw",
+
"3kxwujilwty2m": "hee-haw",
+
"3kxy7b27dke2w": "zhi-zhr",
+
"3ky7xcoqkza2q": "ve-ver",
+
"3kygr2mke2t2z": "si-hir",
+
"3kyikdvmeff2g": "she-we",
+
"3kyikdz4eau2a": "he-we",
+
"3kyike4fibu2k": "they-we",
+
"3kyilq67fyv2a": "xe-xem",
+
"3kzfbgd3jpz2k": "sun-suns",
+
"3kzfbgi7is225": "leaf-leafs",
+
"3kzftskynd32l": "shiv-ver",
+
"3l2jb2koecj27": "ferret-ferrets",
+
"3l2kx6qwefk2h": "drusshe-drayr",
+
"3l2xlzk6lrx2r": "frog-frogs",
+
"3l2xlzt6v5z2x": "rat-rats",
+
"3l2zv7xcpq62u": "shark-sharks",
+
"3l32xb7nvgh2x": "proper-nouns",
};
export const DID = process.env.DID ?? "";
+3 -3
src/label.ts
···
return set;
}, new Set<string>());
-
if (PRONOUNS[uri].post.includes("Like this post to delete")) {
+
if (PRONOUNS[uri].includes("delete")) {
await server
.createLabels({ uri: did }, { negate: [...labels] })
.catch((err) => {
···
.createLabel({
src: server.did,
uri: did,
-
val: PRONOUNS[uri].id!,
+
val: PRONOUNS[uri],
cts: new Date().toISOString(),
})
.catch((err) => {
console.log(err);
})
-
.then(() => console.log(`Labeled ${did} with ${PRONOUNS[uri].post}`));
+
.then(() => console.log(`Labeled ${did} with ${PRONOUNS[uri]}`));
}
};