How to sleep for x minutes after x follows?



  • Hi guys, I'm having little problem, I'm creating a follow bot using foreach to loop scraped data from text file but am having a little issue here. I want to sleep the bot for 40 minutes after every 25 follows, or x minutes after x follows but I can't get to do that. If i use condition to sleep bot, if cycle_index = 25 then sleep for 40mins, this runs only once. But what i want it to do is run everytime, e.g sleep for x minutes after x follows, e.g sleep for 40 minutes after 25 follows, sleep for another 40 minutes after 50 follows e.t.c. Please i need help with this thanks.



  • @bennettjimmy63 Hi. Try to divide cycle_index to 25. And check the result. If it is integer then sleep 2400 seconds.

    ccf0eb8c-5c99-4af6-8955-5e0e203cea98-image.png

    But you should be sure that number that you check is not string.
    If not you just get wrong result anyway.



  • @zortexx said in How to sleep for x minutes after x follows?:

    @bennettjimmy63 Hi. Try to divide cycle_index to 25. And check the result. If it is integer then sleep 2400 seconds.

    ccf0eb8c-5c99-4af6-8955-5e0e203cea98-image.png

    But you should be sure that number that you check is not string.
    If not you just get wrong result anyway.

    Can't seem to figure this out bro, this didn't work out for me


Log in to reply