Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/khemssharma/community-bots

Automation Scripts
https://github.com/khemssharma/community-bots

api-automation bot follower-tracker node-js

Last synced: 24 days ago
JSON representation

Automation Scripts

Awesome Lists containing this project

README

        

# Community Bot

## Overview
Welcome! This repository is a collection of Automatation Scripts. More run-on-cloud Automation Scripts are coming soon 😊

## Key Features

### Automatic Follow Back:
You can follow-back all the users automatically just by running the script followback-all.js 😊
### Automatic Unfollow Non-reciprocal Accounts:
You can unfollow all the users automatically who don't follow you back just by running the script unfollow.js 😁

If they unfollow you; you be like: It's sad to see you go πŸ₯Ή I won't Spam you either.
### Automatically Follow All the users from the Following List of another user :
Some of the users in a following list of other users might be real gems πŸ’ŽπŸ€—

### Scheduled Runs:
If you're so concerned about others unfollowing you; You can set a sheduled run like this:

Actions > Automate Unfollow Non-Reciprocal Accounts > Run workflow

The job is currently set to occur every 8 Hours, but you can change it in unfollow.yml.

### GitHub’s Rate Limits:
GitHub API has a limit of 5000 API Calls per Hour.

After this limit, a Call will simply return an error.

After crossing a Secondary Limit you will only be able to follow others after a few hours.

## How to Use ##

### Clone the repository:
```
git clone https://github.com/khemssharma/Community-bot.git
cd community-bot
```

### Create a .env file with your GitHub username and token:
```
GITHUB_USERNAME = your_github_username
GITHUB_TOKEN = your_github_token
TARGET_USERNAME = targeted_username_for_followbyUser
```

### Install the necessary packages (axios and dotenv):
```
npm install axios dotenv
```

### Run the bot to follow/unfollow users:
```
node followback-all.js
node unfollow.js
node followbyUser.js
```

### Running Automatically (via GitHub Actions)
Set up your GitHub Secrets for USERNAME, TOKEN and TARGET_USERNAME.
in Settings > Secrets & Variable > Actions

Note: You can generate your github token in your account's settings > developers

Run/Enable workflows in Actions (on navigation bar)

.github/workflows/unfollow.yml will run automatically at scheduled times when enabled.

## License
This repository is licensed under the MIT License. See LICENSE for more details.