Answer the question
In order to leave comments, you need to log in
How to process the response from the server every couple of seconds and do it in the background on the server?
I'm making a bot for VKontakte and I need to check incoming messages every second and respond to them, but you can't do this with a browser always on)
PS Don't think, this is not an ordinary bot toy, I have already passed this stage.
Answer the question
In order to leave comments, you need to log in
- create a file: bot.php with the content:
while (true) {
// тут твой код делает свои грязные делишки
sleep(1);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question