···11+# MBR
22+33+This is a personal CLI tool I've used to block any of reposts, quotes, replies, likes, and post author's followers and following. It uses oauth for authentication and batches writes (accidentally banned my PDS on relays for not doing this oops).
44+55+## Using
66+77+This does require `bun` or `node` (deno + others might work too but I don't use them). If I care enough I might make a CI to compile it to a binary, but for now this is just a script.
88+99+The way I run it is by doing:
1010+1111+```sh
1212+bun install
1313+bun index.js
1414+```
1515+1616+and then the process is interactive from there.
1717+1818+Reset of the options you can run it with:
1919+2020+```sh
2121+mbr: interactively block engagement on an atproto post
2222+2323+usage:
2424+ bun index.js [options]
2525+ node index.js [options]
2626+2727+options:
2828+ --delay <ms> delay between batches in ms (default: 150)
2929+ --batch <n> writes per applyWrites call (default: 200)
3030+ --dry-run show what would be blocked without actually blocking
3131+ --no-block-target don't block the target account itself
3232+ --output <file> write blocked DIDs to file (one per line)
3333+ --unblock remove blocks instead of adding them
3434+ -h, --help show this help
3535+```
3636+3737+Note: if blocking doesn't work right, try setting it to a lower value. From what I know, bsky mushroom PDSs (if you don't know what a PDS is you're probably on one of these) have much lower limits for writes.
3838+3939+## Configuration
4040+4141+There's no config file, but there are a couple environment variables
4242+4343+| env var | info | default |
4444+| ------------------ | ------------------------------- | -------------------------------------- |
4545+| CONSTELLATION_BASE | [constellation] instance to use | `https://constellation.microcosm.blue` |
4646+| SLINGSHOT_BASE | [slingshot] instance to use | `https://slingshot.microcosm.blue` |
4747+4848+[constellation]: https://tangled.org/microcosm.blue/microcosm-rs/blob/main/constellation/readme.md
4949+[slingshot]: https://tangled.org/microcosm.blue/microcosm-rs/tree/main/slingshot