|
@@ -54,8 +54,10 @@ class gamematch extends Command
|
|
|
$message = [
|
|
|
"type" => 'gotomatch',
|
|
|
];
|
|
|
- Gateway::sendToClient($robot, $message);
|
|
|
- echo "启动机器人: {$robot}\n";
|
|
|
+ if(Gateway::isOnline($robot)){
|
|
|
+ Gateway::sendToClient($robot, $message);
|
|
|
+ echo "启动机器人: {$robot}\n";
|
|
|
+ }
|
|
|
}
|
|
|
sleep(1);
|
|
|
$match_times++;
|