A script to automate following back your followers on Bluesky Social.
Ensure you have Bun installed on your system. This project uses Bun for managing dependencies and running scripts.
To install the required dependencies, run:
bun installTo start the script, use the following command:
bun run startIf you want the script to also unfollow users who are not following you back, you can use the --unfollow flag:
bun run start --unfollowThis will trigger the script to automatically unfollow users who do not follow you back.
The script performs the following actions:
-
Create a Session:
- Authenticates using your Bluesky username and app password.
- Persists the session using access and refresh tokens.
-
Fetch Followers:
- Retrieves a list of your followers from Bluesky.
- Identifies followers you haven't followed back.
-
Follow Back:
- Automatically follows back any follower who you haven't followed yet.
-
Unfollow Desumildes (Optional):
- If the
--unfollowflag is used, the script will also unfollow users who are not following you back.
- If the
Ensure the following environment variables are set in your environment:
BLUESKY_USERNAME: Your Bluesky username.BLUESKY_APP_PASSWORD: Your Bluesky app-specific password.
The script will log:
- The total number of followers that you are not currently following back.
- Each successful follow-back action.
- Any errors encountered while following back.
- Users who are unfollowed (if the
--unfollowflag is used).
This project is licensed under the MIT License. See the LICENSE file for details.