A work-in-progress, horribly overpowered CLI for Ozone

README

Changed files
+17 -2
+15 -1
README.md
··· 1 ## Cursory attempt to build a script that rapidly actions appeals 2 3 - This is a work in progress. :pray:
··· 1 ## Cursory attempt to build a script that rapidly actions appeals 2 3 + This is a work in progress. :pray: 4 + 5 + Currently it has one command, `autoappeal`, which removes all the labels from and resolves every appeal in your queue. 6 + 7 + Don't ask why I need this. 8 + 9 + Usage: 10 + 11 + ```bash 12 + ATP_USERNAME="user.bsky.social" ATP_PASSWORD="yadda-yadda" SERVICE_DID="your-labeller-DID" deno main.ts autoappeal 13 + ``` 14 + 15 + You can also use a .env file or pass `--username`, `--password` and `--proxy` (service DID) flags. 16 + 17 + I'm awful at using Deno. Apologies for all the typescript errors :sob:
+2 -1
login.ts
··· 6 username = Deno.env.get("ATP_USERNAME"), 7 password = Deno.env.get("ATP_PASSWORD"), 8 service = Deno.env.get("SERVICE_URI") ?? "https://bsky.social", 9 } = parseArgs(Deno.args); 10 11 const agent = new AtpAgent({ service }); 12 - agent.configureProxy("did:plc:newitj5jo3uel7o4mnf3vj2o#atproto_labeler"); 13 14 try { 15 await agent.login({ identifier: username, password });
··· 6 username = Deno.env.get("ATP_USERNAME"), 7 password = Deno.env.get("ATP_PASSWORD"), 8 service = Deno.env.get("SERVICE_URI") ?? "https://bsky.social", 9 + proxy = Deno.env.get("SERVICE_DID"), 10 } = parseArgs(Deno.args); 11 12 const agent = new AtpAgent({ service }); 13 + agent.configureProxy(proxy); 14 15 try { 16 await agent.login({ identifier: username, password });