Command can have some scenarios with BJS code.
BJS - it is "Bot Java Script" code.
It is Java Script!
2+2and send result to the chat:
On command executing, its scenarios are executed sequentially and isolated.
In BJS, you can use all the usual JS functions except setTimeout, setInterval