onRelay > Bot > instantRespawn
Need I say more? You can crash a server using this.
onBotSpawn > Bot > instantRespawn
There are already a dozen ways to accomplish loops like that, that's why schedule quota limitations and other timeouts are a thing
OT: I think Pecon's ticker (better relay events implementation) add-on had something like this, but I'm unsure.