The bot was called the nasosbot. It worked unstable and with delays of 5-40s. Diagnosed and taken measures. I rewrite it to asynchronous, adding a little different tics. The robot is flying like a rocket.
by P.S. The volume of the bot is more than 1000 lines.