import { BskyAgent } from "npm:@atproto/api"; async function main() { console.log("Environment variables:", { username: Deno.env.get("BLUESKY_USERNAME"), password: Deno.env.get("BLUESKY_PASSWORD") }); const agent = new BskyAgent({ service: "https://bsky.social", }); const username = Deno.env.get("BLUESKY_USERNAME"); const password = Deno.env.get("BLUESKY_PASSWORD"); console.log("Username:", username); console.log("Password:", password); if (!username || !password) { throw new Error("Missing BLUESKY_USERNAME or BLUESKY_PASSWORD"); } await agent.login({ identifier: username, password: password, }); await agent.post({ text: "🙂", }); console.log("Just posted!"); } await main();
+ Add Environment Variable
Submit