bsky follow audit script

docssss

besaid.zone d2cabdd1 02853e8f

verified
+12
.env.example
··· 1 + BSKY_USERNAME=dane.is.extraordinarily.cool 2 + 3 + BSKY_APP_PASSWORD= 4 + 5 + # 183 = 6 months but you can adjust this how you'd like 6 + DAYS_SINCE_LAST_POST=183 7 + 8 + # handle or did, both work 9 + IDENTIFIER= 10 + 11 + # find using https://pdsls.dev 12 + PDS_URL=
+21
LICENSE
··· 1 + MIT License 2 + 3 + Copyright (c) 2025 Dane Miller 4 + 5 + Permission is hereby granted, free of charge, to any person obtaining a copy 6 + of this software and associated documentation files (the "Software"), to deal 7 + in the Software without restriction, including without limitation the rights 8 + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 + copies of the Software, and to permit persons to whom the Software is 10 + furnished to do so, subject to the following conditions: 11 + 12 + The above copyright notice and this permission notice shall be included in all 13 + copies or substantial portions of the Software. 14 + 15 + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 + SOFTWARE.
+22
README.md
··· 1 1 # Swab 2 2 3 3 tiny script to audit who you're following based on when they recently posted. currently it's set to build a list of people you're following that haven't posted in 6 months. still wip. 4 + 5 + ## How to use 6 + 7 + 1. make copy of .env file and fill in values 8 + 9 + ```bash 10 + cp .env.example .env 11 + ``` 12 + 13 + 2. run audit script to find people you follow that match criteria 14 + 15 + ```bash 16 + bun run audit 17 + ``` 18 + 19 + this will create a ``follow.json`` in the root of the project 20 + 21 + 3. run unfollow script to unfollow accounts 22 + 23 + ```bash 24 + bun run unfollow 25 + ```
+17 -13
package.json
··· 1 1 { 2 - "name": "unfollower", 3 - "module": "index.ts", 4 - "type": "module", 5 - "private": true, 6 - "devDependencies": { 7 - "@types/bun": "latest" 8 - }, 9 - "peerDependencies": { 10 - "typescript": "^5" 11 - }, 12 - "dependencies": { 13 - "@atproto/api": "^0.18.3" 14 - } 2 + "name": "unfollower", 3 + "module": "index.ts", 4 + "type": "module", 5 + "private": true, 6 + "scripts": { 7 + "audit": "bun run index.ts", 8 + "unfollow": "bun run unfollow.ts" 9 + }, 10 + "devDependencies": { 11 + "@types/bun": "latest" 12 + }, 13 + "peerDependencies": { 14 + "typescript": "^5" 15 + }, 16 + "dependencies": { 17 + "@atproto/api": "^0.18.3" 18 + } 15 19 }