How to make the code run continuously and the server does not stop because of the time limit for execution?
This is necessary for the functioning of the bot in the "game". A bot can be seen by all players, its movement and actions can also be seen without delay. That is, it should be run on the server side, and run continuously. I started to create a bot just now, and immediately thought about this problem ...
In the middle of the "perpetual cycle" I wanted to use sleep()
to delay actions.
How do you like this implementation? This is the first thing that came to mind, and did not invent anything better. If you have ideas or experience in such things, I will be happy to hear.
Thank.