This commit is contained in:
jhartworks
2025-02-13 15:23:18 +01:00
parent 0435e1af52
commit a843597efb
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ class DiscordKofi extends IPSModule {
$this->RegisterPropertyString("DiscordWsUrl","");
$this->RegisterPropertyString("Url","");
$this->RegisterPropertyString("Titel","Eine Nachricht von Kofi");
$this->RegisterPropertyString("Title","Eine Nachricht von Kofi");
}
// Überschreibt die intere IPS_ApplyChanges($id) Funktion
@@ -28,7 +28,7 @@ class DiscordKofi extends IPSModule {
// Discord webhook URL
$webhookUrl = $this->ReadPropertyString("DiscordWsUrl");
$Url = $this->ReadPropertyString("Url");
$topic= $this->ReadPropertyString("Titel");
$topic= $this->ReadPropertyString("Title");
// Data to send as JSON
$data = array(
"username" => $topic,