diff --git a/bot.php b/bot.php index 9adeecc..207c576 100644 --- a/bot.php +++ b/bot.php @@ -79,7 +79,7 @@ $serial->deviceClose(); $toReturn = trim(preg_replace('/\s+/', ' ', $devResponse)); - if(str_contains($toReturn, "Thank you")){ + if(strpos($toReturn, "Thank you") === true){ // have sent more than 20 signals $toReturn = trim(string_between_two_string($toReturn, 'Shared the Signal: ', 'Thank you')); }else{ $toReturn = trim(string_between_two_string($toReturn, 'Shared the Signal: ', 'se try again'));