IRC Chat Bot randomly skips writing

It’s not even the channel. I tried with another channel, with another bot credentials, and still some messages are skipped. But the “test bot” that writes every 2 minutes in chat, never fails. And the command to write is exactly the same

So I am really lost at this point. Why bot1 suddenly doesn’t work after months, but bot2 (which has the same code, kinda) never fails?

I don’t understand why at the same exact time, bot2 cant write but bot1 can instead, this is the classic computer paradox that keeps me awake at night.

Any help?