A simple GitHub bot to manage your followers and following list. This bot helps you keep track of users you follow and automatically follow back, as well as unfollow users who no longer follow you.
git clone https://github.com/mi8bi/follow-sync-bot.git
cd follow-sync-bot
pip install -r requirements.txt
pip install -r dev-requirements.txt
To run the bot and sync your followers and following list, use the following command:
python scripts/main.py --dry-run
This bot uses a GitHub personal access token for authentication. You can generate a fine-grained token on GitHub and set it as an environment variable:
export GITHUB_TOKEN="your_personal_access_token"
Alternatively, you can modify the scripts/main.py to read the token from a file or a configuration.
To run the tests for this project, use the following command:
pytest tests
Tests are written using pytest and responses libraries to mock API calls. You can add new tests or modify existing ones in the tests/ directory.
This project uses GitHub Actions for continuous integration. The tests are automatically run on every push and pull request to the main branch.
The bot is also scheduled to run every day at 7:00 AM JST via GitHub Actions.
We welcome contributions to improve this project! If you want to contribute, please fork the repository, make changes, and create a pull request.
Fork this repository.
Clone your forked repository.
Create a new branch for your feature or bugfix.
Commit your changes and push them to your fork.
Create a pull request with a clear description of your changes.
This project is licensed under the MIT License - see the LICENSE file for details.