this repo has no description
0
fork

Configure Feed

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

fixes

alice e4ca1b17 1e6763a4

+7 -15
+4 -13
src/label.ts
··· 1 1 import { AppBskyActorDefs, ComAtprotoLabelDefs } from '@atproto/api'; 2 2 import { DELETE } from './constants.js'; 3 - import { DID, PORT, SIGNING_KEY } from './config.js'; 3 + import { BSKY_IDENTIFIER, BSKY_PASSWORD, DID, PORT, SIGNING_KEY } from './config.js'; 4 4 import { LabelerServer } from '@skyware/labeler'; 5 5 import { generateText, tool } from 'ai'; 6 6 import { openai } from '@ai-sdk/openai'; ··· 12 12 13 13 export const labelerServer = new LabelerServer({ did: DID, signingKey: SIGNING_KEY }); 14 14 15 - console.log('Starting labeler server on port ', PORT); 16 - labelerServer.start(PORT, (error, address) => { 17 - if (error) { 18 - console.error(error); 19 - } else { 20 - console.log(`Labeler server listening on ${address}`); 21 - } 22 - }); 23 - 24 15 const agent = new AtpAgent({ 25 - service: process.env.BSKY_SERVICE ?? 'https://bsky.social', 16 + service: 'https://bsky.social', 26 17 }); 27 18 28 19 await agent.login({ 29 - identifier: process.env.BSKY_IDENTIFIER!, 30 - password: process.env.BSKY_PASSWORD!, 20 + identifier: BSKY_IDENTIFIER, 21 + password: BSKY_PASSWORD, 31 22 }); 32 23 33 24 console.log('Logged in to Bluesky');
+3 -2
src/set-labels.ts
··· 1 1 import { setLabelerLabelDefinitions, type LoginCredentials } from '@skyware/labeler/scripts'; 2 2 import { type ComAtprotoLabelDefs } from '@atproto/api'; 3 3 import 'dotenv/config'; 4 + import { BSKY_IDENTIFIER, BSKY_PASSWORD } from './config.js'; 4 5 5 6 const LABELS = [ 6 7 { ··· 34 35 ]; 35 36 36 37 const loginCredentials: LoginCredentials = { 37 - identifier: process.env.BSKY_IDENTIFIER!, 38 - password: process.env.BSKY_PASSWORD!, 38 + identifier: BSKY_IDENTIFIER, 39 + password: BSKY_PASSWORD, 39 40 }; 40 41 41 42 const labelDefinitions: ComAtprotoLabelDefs.LabelValueDefinition[] = [];