Skip to content

Commit 3258eb7

Browse files
committed
✨ programmation des publication sur Telegram et twitter dans le Kernel
1 parent 51bafcb commit 3258eb7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/Console/Commands/PostArticleToTelegram.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class PostArticleToTelegram extends Command
1111
{
1212
protected $signature = 'lcm:post-article-to-telegram';
1313

14-
protected $description = 'Posts the latest unshared article to Telegram';
14+
protected $description = 'Posts the latest shared article to Telegram';
1515

1616
public function handle(AnonymousNotifiable $notifiable): void
1717
{

app/Console/Kernel.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ class Kernel extends ConsoleKernel
2525
protected function schedule(Schedule $schedule)
2626
{
2727
$schedule->command('media-library:delete-old-temporary-uploads')->daily();
28-
$schedule->command('sitemap:generate')->daily();
2928
$schedule->command('lcm:delete-old-unverified-users')->daily();
29+
$schedule->command('lcm:post-article-to-twitter')->twiceDaily(12, 16);
30+
$schedule->command('lcm:post-article-to-telegram')->twiceDaily(13, 17);
31+
$schedule->command('sitemap:generate')->daily();
3032
}
3133

3234
/**

0 commit comments

Comments
 (0)