initial commit/backup

This commit is contained in:
2024-11-01 20:55:18 -04:00
commit bc53ce53b1
39 changed files with 10456 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { Agent, CredentialSession } from '@atproto/api';
import { CronJob } from 'cron';
import json from '../secrets/config.json' with { type: 'json' };
const { uname, upass } = json.bluesky;
// Create a Bluesky Agent
const session = new CredentialSession(new URL('https://bsky.social'));
const agent = new Agent(session);
async function main() {
await session.login({ identifier: uname, password: upass });
const { data: accountData } = await agent.getProfile({ actor: session.did });
console.log(accountData);
}
main();