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("DiscordWsUrl","");
$this->RegisterPropertyString("Url",""); $this->RegisterPropertyString("Url","");
$this->RegisterPropertyString("Titel","Eine Nachricht von Kofi"); $this->RegisterPropertyString("Title","Eine Nachricht von Kofi");
} }
// Überschreibt die intere IPS_ApplyChanges($id) Funktion // Überschreibt die intere IPS_ApplyChanges($id) Funktion
@@ -28,7 +28,7 @@ class DiscordKofi extends IPSModule {
// Discord webhook URL // Discord webhook URL
$webhookUrl = $this->ReadPropertyString("DiscordWsUrl"); $webhookUrl = $this->ReadPropertyString("DiscordWsUrl");
$Url = $this->ReadPropertyString("Url"); $Url = $this->ReadPropertyString("Url");
$topic= $this->ReadPropertyString("Titel"); $topic= $this->ReadPropertyString("Title");
// Data to send as JSON // Data to send as JSON
$data = array( $data = array(
"username" => $topic, "username" => $topic,
+1 -1
View File
@@ -8,6 +8,6 @@
"date": 1491343200 "date": 1491343200
}, },
"version": "1.0", "version": "1.0",
"build": 0, "build": 1,
"date": 0 "date": 0
} }