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