Skip to content

Commit

Permalink
are more message
Browse files Browse the repository at this point in the history
  • Loading branch information
tomahock committed Jul 8, 2024
1 parent a48b5f0 commit 648705d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/Jobs/ProcessANPCAllDataV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public function handle()
$x[] = [
'hash' => $currentHash,
'time' => $now,
'ticks' => 0,
'notify' => false
];

Expand All @@ -96,11 +97,13 @@ public function handle()
if(!$last['notify']){
DiscordTool::postError('A API não atualiza ha 10 minutos');
$last['notify'] = true;
$x[] = $last;
}

} elseif($last['ticks'] % 5 === 0){
DiscordTool::postError('A API não atualiza ha '.$diff.' minutos');
}

$last['ticks']++;
$x[] = $last;
}

file_put_contents('history.json', json_encode($x));
Expand Down

0 comments on commit 648705d

Please sign in to comment.