Files
animexe/routes/console.php
T
2026-07-14 00:01:48 +03:00

34 lines
1.0 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Schedule;
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');
// AI blog: günde 3 kez (09:00, 15:00, 21:00) — her seferinde 1 yeni yazı
Schedule::command('animexe:generate-blogs --count=1')
->cron('0 9,15,21 * * *')
->withoutOverlapping()
->runInBackground();
// AI anime meta doldurma: her gece 02:00 — eksik tüm animeleri işle, bititiğinde dur
Schedule::command('animexe:fill-anime-meta')
->dailyAt('02:00')
->withoutOverlapping()
->runInBackground();
// Her saat başı süresi dolan mahkemeleri kapat
Schedule::command('tribunals:close')
->hourly()
->withoutOverlapping();
// Her gece 02:30 — kapak/banneri eksik animelere AniList'ten resim çek
Schedule::command('anime:fetch-images --missing --limit=100')
->dailyAt('02:30')
->withoutOverlapping()
->runInBackground();