This project is a GitHub bot that automatically follows random users on GitHub. The bot is built using Node.js and the Octokit library to interact with the GitHub API.
git clone https://github.com/mrahmadhassankhan/Github-Auto-Follower-Bot/
npm install
3. Generate a Github Token and make sure your GitHub token has the user:follow
scope to allow the bot to follow users on your behalf.
Visit https://github.com/settings/tokens to generate
Create a .env
file in the root of the project and add your GitHub token:
GITHUB_TOKEN=your_github_token_here
node bot.js
The bot will fetch a list of random users from GitHub and follow them with a delay between each follow to avoid hitting rate limits. The delay is set to 10 sec by default.
We welcome contributions to this project! To get started:
-
Fork the Repository
- Click the "Fork" button at the top right of this repository to create your own copy.
-
Clone Your Fork
- Clone your forked repository to your local machine:
git clone https://github.com/mrahmadhassankhan/Github-Auto-Follower-Bot/
- Clone your forked repository to your local machine:
-
Create a New Branch
- Create a new branch for your feature or fix:
git checkout -b your-branch-name
- Create a new branch for your feature or fix:
-
Make Your Changes
- Implement your changes or new features.
-
Test Your Changes
- Ensure that your changes work as expected and do not break existing functionality.
-
Commit Your Changes
- Commit your changes with a clear and concise message:
git add . git commit -m "Description of your changes"
- Commit your changes with a clear and concise message:
-
Push Your Changes
- Push your changes to your forked repository:
git push origin your-branch-name
- Push your changes to your forked repository:
-
Open a Pull Request
- Go to the original repository and open a pull request from your forked repository.
- Make sure your GitHub token has the
user:follow
scope to allow the bot to follow users on your behalf. - Be mindful of GitHub's rate limits and terms of service when using this bot.
- @octokit/rest: GitHub REST API client for Node.js
- dotenv: Loads environment variables from a .env file
This project is licensed under the MIT License.