diff --git a/app/Listeners/AddLoginReputation.php b/app/Listeners/AddLoginReputation.php index dcc5fc39..26ff81d9 100644 --- a/app/Listeners/AddLoginReputation.php +++ b/app/Listeners/AddLoginReputation.php @@ -10,7 +10,6 @@ class AddLoginReputation { /** * Create the event listener. - * * @return void */ public function __construct() @@ -24,6 +23,12 @@ class AddLoginReputation public function handle(object $event): void { $event->user->givePoint(new LoggedIn($event->user)); + $text = sprintf(" + Der Hoonig-Dax hat sich gerade eingeloggt. + Markus Turm ist total begeistert. + "); + File::put(storage_path('app/public/tts/honig.txt'), $text); + dispatch(new \App\Jobs\CodeIsSpeech('honig'))->delay(now()->addSeconds(30)); event(new PlebLoggedInEvent($event->user->name, $event->user->profile_photo_url)); } } diff --git a/app/Traits/HasTextToSpeech.php b/app/Traits/HasTextToSpeech.php index 9a2bf985..1ffe3019 100644 --- a/app/Traits/HasTextToSpeech.php +++ b/app/Traits/HasTextToSpeech.php @@ -21,7 +21,7 @@ trait HasTextToSpeech if ( in_array($id, [ - //'authLn', + 'authLn', 'profileLnbits', 'meetupWorld', 'bitcoinEventTableBitcoinEvent',