Tools-for-Instagram: likeRecentHashtagsByIntervals error

I’m getting this error using likeRecentHashtagsByIntervals error. Below is all my codes. Nothing fancy, just settings and calling the function.

let ig = await login(); let likesPerInterval = 24; let waitMinutesBetweenLikes = 60;

let intervals = [ ["0:00", "23:00"] ]; let hashtagArray = [ "meme", "memes", "dailymeme", "dailymemes" ];

let likeInterval = likeRecentHashtagsByIntervals( ig, hashtagArray, intervals, likesPerInterval, waitMinutesBetweenLikes);

image

Anyone knows what’s wrong?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18 (9 by maintainers)

Most upvoted comments

You need to import imstagram_mqtt from npm instead of github. Npm ignores the src/ directory, so the library doesn’t compile. This has to be done in the package.json (replace "instagram_mqtt": "..." with "instagram_mqtt": "^0.2.16" (cc @linkfy )