B1
This commit is contained in:
@@ -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
@@ -8,6 +8,6 @@
|
|||||||
"date": 1491343200
|
"date": 1491343200
|
||||||
},
|
},
|
||||||
"version": "1.0",
|
"version": "1.0",
|
||||||
"build": 0,
|
"build": 1,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user