This commit is contained in:
HolgerHatGarKeineNode
2023-04-25 23:36:12 +02:00
parent ed54b25567
commit c6ee8f9854
2 changed files with 7 additions and 2 deletions

View File

@@ -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));
}
}

View File

@@ -21,7 +21,7 @@ trait HasTextToSpeech
if (
in_array($id, [
//'authLn',
'authLn',
'profileLnbits',
'meetupWorld',
'bitcoinEventTableBitcoinEvent',