fancier notifications

This commit is contained in:
Andras Bacsai
2024-10-21 22:40:43 +02:00
parent dbdb9e6f10
commit f0d5639956
19 changed files with 106 additions and 125 deletions

View File

@@ -38,11 +38,15 @@ class ContainerRestarted extends Notification implements ShouldQueue
public function toDiscord(): DiscordMessage
{
$message = new DiscordMessage(
title: "Coolify: A resource ({$this->name}) has been restarted automatically on {$this->server->name}",
description: 'Please check the output below for more information.',
title: ':warning: Resource restarted',
description: "{$this->name} has been restarted automatically on {$this->server->name}.",
color: DiscordMessage::infoColor(),
);
if ($this->url) {
$message->addField('Resource', '[Link]('.$this->url.')');
}
return $message;
}