
Welcome to the GitHub Follower Bot Automated repository! This project is designed to help you automatically follow your GitHub followers, keeping your network growing and engaged with minimal effort.
:raised_hand::raised_hand::raised_hand:You Follow Me ---> My Bot Follows you Back! Let's growth Together!:raised_hand::raised_hand::metal:
:large_blue_circle::large_blue_circle::large_blue_circle:Let's also connect on LinkedIn
:star::star::star::star::star: ---> Star the Repo!
The bot will fetch your list of followers and automatically follow any users that are not already followed.
A log of followed users is maintained in the followers.txt file.
The bot will continue to run until all followers have been processed.
Additionally, the check_all_followers.py script allows you to monitor how many followers you have and how many you can follow based on your current GitHub API rate limits.
The bot can be run in two ways: 1. Manually: You can run the bot manually on your local machine. 2. Automatically with GitHub Actions: Set up the bot to run automatically on a schedule using GitHub Actions.
GitHub_Follower_Bot_Automated/
│
├── bot.py # Main script for the bot.
├── check_all_followers.py # Script to check total followers and available follows.
├── followers.txt # File where followed users are logged.
├── follower_counter.txt # Total number of users followed across all runs.
├── requirements.txt # Python dependencies.
├── .env # Environment variables (must be created).
├── bot.log # Log file for bot.py activities.
├── check_all_followers.log # Log file for check_all_followers.py activities.
├── LICENSE # Project licensing information.
└── README.md # This readme file.
Clone this repository to your local machine:
git clone https://github.com/OfficialCodeVoyage/GitHub_Follower_Bot_Automated.git
cd GitHub_Follower_Bot_Automated
Install the required Python packages using pip:
pip install -r requirements.txt
Create a .env file in the project root and add your GitHub username and Personal Access Token:
GITHUB_USER=your_github_username
PERSONAL_GITHUB_TOKEN=your_personal_access_token
Make sure you do not commit this file to the repository as it contains sensitive information. Create .gitignore file and add .env to it.
Run the bot using the following command:
python follower_bot.py
To set up the bot to run automatically on a schedule using GitHub Actions, follow these steps:
repo: Full control of private repositories.workflow: Update GitHub Actions workflows.admin:repo_hook: Manage webhooks and their events.public_repo: Access to public repositories.read:user: Read access to profile data.write:repo_hook: Manage repository hooks.user: Read and write access to profile information.gist: Access to Gists (if needed).PERSONAL_GITHUB_TOKEN: Paste the Personal Access Token you copied earlier into the "Secret" field and click "Add secret" to save it.In your YAML file (e.g., automation.yml), update the following:
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
bot.py with your actual script name in the run command:
run: |
python bot.py
requirements.txt is correct and that the path is correct if it's in a different directory.schedule:
- cron: '0 0 * * *' # Modify as needed
Ensure that your workflow has the necessary permissions by adding this to your YAML file:
permissions:
contents: write # Allows committing and pushing changes
issues: write # Allows creating and managing issues
pull-requests: write # Allows managing pull requests
actions: write # Allows updating GitHub Actions workflows
GITHUB_USER: Your GitHub username.PERSONAL_GITHUB_TOKEN: Your GitHub Personal Access Token for API access.Additional features can be implemented as needed. Check the Issues and Discussions sections for ideas and contributions.
Contributions are welcome! Feel free to submit a pull request or open an issue for suggestions, bug reports, or feature requests.
git checkout -b dev).git commit -m 'Add some feature').git push origin dev).This project is licensed under the MIT License. See the LICENSE file for more details.
For any questions or issues, please feel free to reach out via GitHub Issues or Discussions.
$ claude mcp add GitHub_Follower_Bot_Automated \
-- python -m otcore.mcp_server <graph>