use App\Models\ChatLog;
use Illuminate\Console\Command;
-class EvaluateChatCommand extends Command {
+class ReevaluateChatCommand extends Command {
/**
* The name and signature of the console command.
public function handle() {
$good = 0;
$bad = 0;
- ChatLog::where('type', '=', 'chat')
+ ChatLog::whereIn('type', ['chat', 'error'])
->where('banned', false)
->orderBy('created_at')
->chunk(10000, function ($logs) use (&$good, &$bad) {