BINKP responding to incoming netmail pings
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Classes\FTN\Process;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Carbon\CarbonInterface;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
use App\Classes\FTN\{Message,Process};
|
||||
use App\Models\{Netmail,Setup};
|
||||
@@ -26,6 +27,8 @@ final class Ping extends Process
|
||||
if (strtolower($msg->user_to) !== 'ping')
|
||||
return FALSE;
|
||||
|
||||
Log::info(sprintf('Processing PING message from (%s) [%s]',$msg->user_from,$msg->fftn));
|
||||
|
||||
$reply = sprintf("Your ping was received here on %s and it took %s to get here.\r",
|
||||
Carbon::now()->toDateTimeString(),
|
||||
$msg->date->diffForHumans(['parts'=>3,'syntax'=>CarbonInterface::DIFF_ABSOLUTE])
|
||||
@@ -46,7 +49,7 @@ final class Ping extends Process
|
||||
$o->msg = static::format_msg($reply);
|
||||
$o->reply = $msg->msgid;
|
||||
|
||||
$o->tagline = '... My ping pong opponent was not happy with my serve. He kept returning it.';
|
||||
$o->tagline = 'My ping pong opponent was not happy with my serve. He kept returning it.';
|
||||
$o->tearline = sprintf('--- %s (%s)',Setup::PRODUCT_NAME,(new Setup)->version);
|
||||
$o->save();
|
||||
|
||||
|
Reference in New Issue
Block a user