Files
UNIT3D-Community-Edition/app/Console/Kernel.php
HDVinnie 619d83098b (Update) Hit&Run / History System
- add prewarnings
- update history table (migration)
- I added a check in the announce controller for the completed event sent by client. During that event I added `$history->immune = ($user->group->is_immune == 1) ? 1 : 0; ` which is pretty much saying is the user in a immune group upon download completion. This will solve people in immune groups that download but dont meet 7 days seedtime but then get demoted and banned. As we wont issue warnings for history records marked as immune.
2018-11-10 12:06:49 -05:00

89 lines
3.4 KiB
PHP
Executable File

<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
// Scheduled Commands
\App\Console\Commands\AutoNerdStat::class,
\App\Console\Commands\AutoBonAllocation::class,
\App\Console\Commands\AutoHighspeedTag::class,
\App\Console\Commands\AutoPreWarning::class,
\App\Console\Commands\AutoWarning::class,
\App\Console\Commands\AutoDeactivateWarning::class,
\App\Console\Commands\AutoRevokePermissions::class,
\App\Console\Commands\AutoBan::class,
\App\Console\Commands\AutoFlushPeers::class,
\App\Console\Commands\AutoGroup::class,
\App\Console\Commands\AutoRemovePersonalFreeleech::class,
\App\Console\Commands\AutoRemoveFeaturedTorrent::class,
\App\Console\Commands\AutoGraveyard::class,
\App\Console\Commands\IrcBroadcast::class,
\App\Console\Commands\IrcMessage::class,
\App\Console\Commands\AutoRecycleInvites::class,
\App\Console\Commands\AutoRecycleActivityLog::class,
\App\Console\Commands\AutoRecycleFailedLogins::class,
\App\Console\Commands\AutoDisableInactiveUsers::class,
\App\Console\Commands\AutoSoftDeleteDisabledUsers::class,
\App\Console\Commands\AutoRecycleClaimedTorrentRequests::class,
// Manually Run Commands
\App\Console\Commands\DemoSeed::class,
\App\Console\Commands\GitUpdater::class,
\App\Console\Commands\ClearCache::class,
\App\Console\Commands\SetCache::class,
\App\Console\Commands\TestMailSettings::class
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('auto:group ')->daily();
$schedule->command('auto:nerdstat ')->hourly();
$schedule->command('auto:graveyard')->daily();
$schedule->command('auto:highspeed_tag')->hourly();
$schedule->command('auto:prewarning')->hourly();
$schedule->command('auto:warning')->daily();
$schedule->command('auto:deactivate_warning')->hourly();
$schedule->command('auto:revoke_permissions')->hourly();
$schedule->command('auto:ban')->hourly();
$schedule->command('auto:flush_peers')->hourly();
$schedule->command('auto:bon_allocation')->hourly();
$schedule->command('auto:remove_personal_freeleech')->hourly();
$schedule->command('auto:remove_featured_torrent')->hourly();
$schedule->command('auto:recycle_invites')->daily();
$schedule->command('auto:recycle_activity_log')->daily();
$schedule->command('auto:recycle_failed_logins')->daily();
$schedule->command('auto:disable_inactive_users')->daily();
$schedule->command('auto:softdelete_disabled_users')->daily();
$schedule->command('auto:recycle_claimed_torrent_requests')->daily();
}
/**
* Register the Closure based commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}