mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
TTS
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ trait HasTextToSpeech
|
||||
|
||||
if (
|
||||
in_array($id, [
|
||||
//'authLn',
|
||||
'authLn',
|
||||
'profileLnbits',
|
||||
'meetupWorld',
|
||||
'bitcoinEventTableBitcoinEvent',
|
||||
|
||||
Reference in New Issue
Block a user