$loopStatus will return the current loop status.
$loopStatus
This will return the current loop status:
1client.command({2 name: "loopStatus",3 code: `4 $loopStatus5 `6});