$help[] = "Or use _chat to select the number or name of the person to chat to:"; $help[] = "_chat +121234567"; $help[] = "_chat example contact"; $help[] = "example message"; $help[] = " "; $help[] = "Once a chat is open (by yourself or by an incomming message) any replies without a prefix number will go to the current active chat recipient automatically."; $help[] = " "; foreach ($help as $body) { $conn->message($pl["from"], $body); } break; case "_health_check": /* Force a health check */ if ($gateway->health_check($force = true)) { $conn->message($pl["from"], $body = "Health check was successful!"); } else { $conn->message($pl["from"], $body = "Health check was unsuccessful :-("); } $current_status = null; break; case "_who": if ($current_chat) { $conn->message($pl["from"], $body = "Currently chatting to {$current_chat}"); //TODO: add contacts lookup here } else { $conn->message($pl["from"], $body = "Not currently chatting to anyone"); } break; default: