My bot starts with 50 threads, is there a better way to control the running threads, maybe 20-25 threads run at the same time?
Now I control this with sleep function, 25 threads working for 30 minutes and then sleep for 40 minutes. And when those threads sleeps I run the other 25 threads.
I createa server in Node.js and I want to run this function when it is called, and then do the task asynchronously in a seperate thread and browser and then return the result how can I do this ?
@givirus its because of your script logic, maybe you dont call the function? OR you dont have proper error handling which results into certain parts of your script being skipped since they are inside an if statement. I encountered this problem many times in the past, you will need to handle errors and it'll will be most likely fixed, for the purpose of debugging you can use the "Log" function at several points to see where it will print it.