-
Notifications
You must be signed in to change notification settings - Fork 80
Bot 1 [Doing]
- The bot will be operating from 7 AM to 11 PM.
- This bot we will be liking content based on recent posts of the desired hashtags.
- Actually, we are going to be working on the 'likes'
Future work:
- Follows
- Unfollows
We don't want to do more than 100 Likes per day, we are going to use 6 intervals on the app.
In this way we are going to distribute 15 likes per hour in 6-hour intervals, doing 90 likes per day.
| Interval | Starting | Ending |
|---|---|---|
| 1 | 7 am | 8 am |
| 2 | 10 am | 11 am |
| 3 | 2 pm | 3 pm |
| 4 | 5 pm | 6 pm |
| 5 | 8 pm | 9 pm |
| 6 | 10 pm | 11 pm |
Each Interval will send 15 likes with a fixed delay of 3 minutes between like.
| Like | Starting Minute |
|---|---|
| 1 | 1 |
| 2 | 4 |
| 3 | 7 |
| 4 | 10 |
| 5 | 13 |
| 6 | 16 |
| 7 | 19 |
| 8 | 22 |
| 9 | 25 |
| 10 | 28 |
| 11 | 31 |
| 12 | 34 |
| 13 | 37 |
| 14 | 40 |
| 15 | 43 |
As you can see we use 3 minutes to send a like to get a total of 15 likes per Iteration. Our bot will do every iteration as a single function.
let likeInterval = likeRecentHashtagsByIntervals(account, intervals, hashtags, 15, 3);Following the same logic, we are going to send 13 follows per Interval and wait 4 minutes between follow, we need 52 minutes to do it in each interval, at the end of the day it will be a total of 78 follows.
let followInterval = followRecentHashtagsByIntervals(account, intervals, hashtags, 15, 3);As an experimental bot we can get Spam errors on our requests some times, for this reason we can manage the rejections at the end of the code and try to delete the cookies from our Instagram session and generate a new one making a new login()
process.on('unhandledRejection', async function(err) {
console.log(err.response.body);
if(err.name == "IgActionSpamError") {
console.log("Spam Error, trying to regenerate the cookie".red);
await removeCookie(ig);
ig = await login();
}
});