mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-13 06:56:48 +00:00
TTS
This commit is contained in:
@@ -10,7 +10,6 @@ class AddLoginReputation
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Create the event listener.
|
* Create the event listener.
|
||||||
*
|
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
@@ -24,6 +23,12 @@ class AddLoginReputation
|
|||||||
public function handle(object $event): void
|
public function handle(object $event): void
|
||||||
{
|
{
|
||||||
$event->user->givePoint(new LoggedIn($event->user));
|
$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));
|
event(new PlebLoggedInEvent($event->user->name, $event->user->profile_photo_url));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ trait HasTextToSpeech
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
in_array($id, [
|
in_array($id, [
|
||||||
//'authLn',
|
'authLn',
|
||||||
'profileLnbits',
|
'profileLnbits',
|
||||||
'meetupWorld',
|
'meetupWorld',
|
||||||
'bitcoinEventTableBitcoinEvent',
|
'bitcoinEventTableBitcoinEvent',
|
||||||
|
|||||||
Reference in New Issue
Block a user