this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add signs

alice fb30df7e 1e6ad91a

+100 -44
+12
.editorconfig
··· 1 + # EditorConfig is awesome: https://EditorConfig.org 2 + 3 + # top-most EditorConfig file 4 + root = true 5 + 6 + [*] 7 + indent_style = space 8 + indent_size = 2 9 + end_of_line = lf 10 + charset = utf-8 11 + trim_trailing_whitespace = false 12 + insert_final_newline = true
+7
.prettierrc
··· 1 + { 2 + "trailingComma": "all", 3 + "tabWidth": 2, 4 + "semi": true, 5 + "singleQuote": true, 6 + "printWidth": 120 7 + }
+37
src/add-labels.ts
··· 1 + import { setLabelerLabelDefinitions, type LoginCredentials } from "@skyware/labeler/scripts"; 2 + import { type ComAtprotoLabelDefs} from "@atproto/api"; 3 + import { SIGNS } from "./constants.js"; 4 + import "dotenv/config"; 5 + 6 + const loginCredentials: LoginCredentials = { 7 + identifier: process.env.BSKY_IDENTIFIER!, 8 + password: process.env.BSKY_PASSWORD! 9 + } 10 + 11 + const labelDefinitions: ComAtprotoLabelDefs.LabelValueDefinition[] = []; 12 + 13 + for (const label of SIGNS) { 14 + const labelValueDefinition: ComAtprotoLabelDefs.LabelValueDefinition = { 15 + identifier: label.label, 16 + severity: "inform", 17 + blurs: "none", 18 + defaultSetting: "warn", 19 + adultOnly: false, 20 + locales: [ 21 + { 22 + lang: "en", 23 + name: label.displayLabel, 24 + description: label.enDesc 25 + }, 26 + { 27 + lang: "pt-BR", 28 + name: label.displayLabel, 29 + description: label.brDesc 30 + } 31 + ] 32 + } 33 + 34 + labelDefinitions.push(labelValueDefinition); 35 + } 36 + 37 + await setLabelerLabelDefinitions(loginCredentials, labelDefinitions);
+38 -38
src/constants.ts
··· 5 5 export const PORT = 4002; 6 6 export const LABEL_LIMIT = 3; 7 7 export const DELETE = "3l3lfjnk2zb2n"; 8 - export const POSTS: Record<string, string> = { 9 - "3l3lfvkycmr2n": "sun-aries", 10 - "3l3lfw3vfwl2c": "sun-taurus", 11 - "3l3lfwd7djq2c": "sun-gemini", 12 - "3l3lfwj44fc2n": "sun-cancer", 13 - "3l3lfwp2nu72y": "sun-leo", 14 - "3l3lfwvsi472y": "sun-virgo", 15 - "3l3lfx456nm2m": "sun-libra", 16 - "3l3lfxezjxm2o": "sun-scorpio", 17 - "3l3lfxkifbh27": "sun-sagittarius", 18 - "3l3lfxqfxie2n": "sun-capricorn", 19 - "3l3lfxvt5672y": "sun-aquarius", 20 - "3l3lfy74k242r": "sun-pisces", 21 - "3l3lhe5f4gd2c": "moon-aries", 22 - "3l3lhef5rkz2r": "moon-taurus", 23 - "3l3lhem7msu2o": "moon-gemini", 24 - "3l3lhgw2liq2c": "moon-cancer", 25 - "3l3lhhikpzf2x": "moon-leo", 26 - "3l3lhivrrem2n": "moon-virgo", 27 - "3l3lhj55tvo2t": "moon-libra", 28 - "3l3lhjd5dvj2n": "moon-scorpio", 29 - "3l3lhjjlnyg2j": "moon-sagittarius", 30 - "3l3lhjqpcmb2r": "moon-capricorn", 31 - "3l3lhjwjny22h": "moon-aquarius", 32 - "3l3lhkcfc7x27": "moon-pisces", 33 - "3l3lhsnuiqx27": "rising-aries", 34 - "3l3lhsu7qtk2q": "rising-taurus", 35 - "3l3lht44nz32c": "rising-gemini", 36 - "3l3lhtbxbrt2n": "rising-cancer", 37 - "3l3lhtjco7g2f": "rising-leo", 38 - "3l3lhtoxwyo2p": "rising-virgo", 39 - "3l3lhtubu4b23": "rising-libra", 40 - "3l3lhu2qoyf2h": "rising-scorpio", 41 - "3l3lhu77pvx27": "rising-sagittarius", 42 - "3l3lhueqe5l2n": "rising-capricorn", 43 - "3l3lhujywjw2t": "rising-aquarius", 44 - "3l3lhuqczcj2n": "rising-pisces", 45 - }; 8 + export const SIGNS = [ 9 + { post: "3l3lfvkycmr2n", label: "sun-aries", displayLabel: "☀️ ♈", enDesc: "Aries", brDesc: "Áries" }, 10 + { post: "3l3lfw3vfwl2c", label: "sun-taurus", displayLabel: "☀️ ♉", enDesc: "Taurus", brDesc: "Touro" }, 11 + { post: "3l3lfwd7djq2c", label: "sun-gemini", displayLabel: "☀️ ♊", enDesc: "Gemini", brDesc: "Gêmeos" }, 12 + { post: "3l3lfwj44fc2n", label: "sun-cancer", displayLabel: "☀️ ♋", enDesc: "Cancer", brDesc: "Câncer" }, 13 + { post: "3l3lfwp2nu72y", label: "sun-leo", displayLabel: "☀️ ♌", enDesc: "Leo", brDesc: "Leão" }, 14 + { post: "3l3lfwvsi472y", label: "sun-virgo", displayLabel: "☀️ ♍", enDesc: "Virgo", brDesc: "Virgem" }, 15 + { post: "3l3lfx456nm2m", label: "sun-libra", displayLabel: "☀️ ♎", enDesc: "Libra", brDesc: "Libra" }, 16 + { post: "3l3lfxezjxm2o", label: "sun-scorpio", displayLabel: "☀️ ♏", enDesc: "Scorpio", brDesc: "Escorpião" }, 17 + { post: "3l3lfxkifbh27", label: "sun-sagittarius", displayLabel: "☀️ ♐", enDesc: "Sagittarius", brDesc: "Sagitário" }, 18 + { post: "3l3lfxqfxie2n", label: "sun-capricorn", displayLabel: "☀️ ♑", enDesc: "Capricorn", brDesc: "Capricórnio" }, 19 + { post: "3l3lfxvt5672y", label: "sun-aquarius", displayLabel: "☀️ ♒", enDesc: "Aquarius", brDesc: "Aquário" }, 20 + { post: "3l3lfy74k242r", label: "sun-pisces", displayLabel: "☀️ ♓", enDesc: "Pisces", brDesc: "Peixes" }, 21 + { post: "3l3lhe5f4gd2c", label: "moon-aries", displayLabel: "🌙 ♈", enDesc: "Aries", brDesc: "Áries" }, 22 + { post: "3l3lhef5rkz2r", label: "moon-taurus", displayLabel: "🌙 ♉", enDesc: "Taurus", brDesc: "Touro" }, 23 + { post: "3l3lhem7msu2o", label: "moon-gemini", displayLabel: "🌙 ♊", enDesc: "Gemini", brDesc: "Gêmeos" }, 24 + { post: "3l3lhgw2liq2c", label: "moon-cancer", displayLabel: "🌙 ♋", enDesc: "Cancer", brDesc: "Câncer" }, 25 + { post: "3l3lhhikpzf2x", label: "moon-leo", displayLabel: "🌙 ♌", enDesc: "Leo", brDesc: "Leão" }, 26 + { post: "3l3lhivrrem2n", label: "moon-virgo", displayLabel: "🌙 ♍", enDesc: "Virgo", brDesc: "Virgem" }, 27 + { post: "3l3lhj55tvo2t", label: "moon-libra", displayLabel: "🌙 ♎", enDesc: "Libra", brDesc: "Libra" }, 28 + { post: "3l3lhjd5dvj2n", label: "moon-scorpio", displayLabel: "🌙 ♏", enDesc: "Scorpio", brDesc: "Escorpião" }, 29 + { post: "3l3lhjjlnyg2j", label: "moon-sagittarius", displayLabel: "🌙 ♐", enDesc: "Sagittarius", brDesc: "Sagitário" }, 30 + { post: "3l3lhjqpcmb2r", label: "moon-capricorn", displayLabel: "🌙 ♑", enDesc: "Capricorn", brDesc: "Capricórnio" }, 31 + { post: "3l3lhjwjny22h", label: "moon-aquarius", displayLabel: "🌙 ♒", enDesc: "Aquarius", brDesc: "Aquário" }, 32 + { post: "3l3lhkcfc7x27", label: "moon-pisces", displayLabel: "🌙 ♓", enDesc: "Pisces", brDesc: "Peixes" }, 33 + { post: "3l3lhsnuiqx27", label: "rising-aries", displayLabel: "⬆️ ♈", enDesc: "Aries", brDesc: "Áries" }, 34 + { post: "3l3lhsu7qtk2q", label: "rising-taurus", displayLabel: "⬆️ ♉", enDesc: "Taurus", brDesc: "Touro" }, 35 + { post: "3l3lht44nz32c", label: "rising-gemini", displayLabel: "⬆️ ♊", enDesc: "Gemini", brDesc: "Gêmeos" }, 36 + { post: "3l3lhtbxbrt2n", label: "rising-cancer", displayLabel: "⬆️ ♋", enDesc: "Cancer", brDesc: "Câncer" }, 37 + { post: "3l3lhtjco7g2f", label: "rising-leo", displayLabel: "⬆️ ♌", enDesc: "Leo", brDesc: "Leão" }, 38 + { post: "3l3lhtoxwyo2p", label: "rising-virgo", displayLabel: "⬆️ ♍", enDesc: "Virgo", brDesc: "Virgem" }, 39 + { post: "3l3lhtubu4b23", label: "rising-libra", displayLabel: "⬆️ ♎", enDesc: "Libra", brDesc: "Libra" }, 40 + { post: "3l3lhu2qoyf2h", label: "rising-scorpio", displayLabel: "⬆️ ♏", enDesc: "Scorpio", brDesc: "Escorpião" }, 41 + { post: "3l3lhu77pvx27", label: "rising-sagittarius", displayLabel: "⬆️ ♐", enDesc: "Sagittarius", brDesc: "Sagitário" }, 42 + { post: "3l3lhueqe5l2n", label: "rising-capricorn", displayLabel: "⬆️ ♑", enDesc: "Capricorn", brDesc: "Capricórnio" }, 43 + { post: "3l3lhujywjw2t", label: "rising-aquarius", displayLabel: "⬆️ ♒", enDesc: "Aquarius", brDesc: "Aquário" }, 44 + { post: "3l3lhuqczcj2n", label: "rising-pisces", displayLabel: "⬆️ ♓", enDesc: "Pisces", brDesc: "Peixes" }, 45 + ];
+4 -4
src/label.ts
··· 3 3 DID, 4 4 PORT, 5 5 LABEL_LIMIT, 6 - POSTS, 6 + SIGNS, 7 7 SIGNING_KEY, 8 8 DELETE, 9 9 } from "./constants.js"; ··· 45 45 console.log(err); 46 46 }) 47 47 .then(() => console.log(`Deleted labels for ${did}`)); 48 - } else if (labels.size < LABEL_LIMIT && POSTS[rkey]) { 48 + } else if (labels.size < LABEL_LIMIT && SIGNS[rkey]) { 49 49 await server 50 - .createLabel({ uri: did, val: POSTS[rkey] }) 50 + .createLabel({ uri: did, val: SIGNS[rkey] }) 51 51 .catch((err) => { 52 52 console.log(err); 53 53 }) 54 - .then(() => console.log(`Labeled ${did} with ${POSTS[rkey]}`)); 54 + .then(() => console.log(`Labeled ${did} with ${SIGNS[rkey]}`)); 55 55 } 56 56 };
+2 -2
tsconfig.json
··· 2 2 "compilerOptions": { 3 3 "strict": true, 4 4 "target": "ESNext", 5 - "module": "ESNext", 6 - "moduleResolution": "node", 5 + "module": "NodeNext", 6 + "moduleResolution": "NodeNext", 7 7 "allowSyntheticDefaultImports": true, 8 8 "esModuleInterop": true, 9 9 },