update: telegram bot modularization

This commit is contained in:
tokumeikoi
2022-01-27 01:46:26 +08:00
parent 1790de63f6
commit 5bf1dd3426
12 changed files with 279 additions and 156 deletions

View File

@ -2,8 +2,10 @@
namespace App\Console;
use App\Utils\CacheKey;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use Illuminate\Support\Facades\Cache;
class Kernel extends ConsoleKernel
{
@ -24,6 +26,7 @@ class Kernel extends ConsoleKernel
*/
protected function schedule(Schedule $schedule)
{
Cache::put(CacheKey::get('SCHEDULE_LAST_CHECK_AT', null), time());
// v2board
$schedule->command('v2board:statistics')->dailyAt('0:10');
// check