Adding tgBotOwner to config, sending error message to that ID in case of curl failed
This commit is contained in:
parent
baaa2990da
commit
212412d844
@ -15,6 +15,7 @@
|
|||||||
* kommune: 2601
|
* kommune: 2601
|
||||||
* strasse: 2146
|
* strasse: 2146
|
||||||
* pathBot: '~/bin/YMBot'
|
* pathBot: '~/bin/YMBot'
|
||||||
|
* tgBotOwner: <hier DEINE Telegram-ID eintragen>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$currentYear = date('Y');
|
$currentYear = date('Y');
|
||||||
@ -89,4 +90,6 @@ if ($response !== false) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
shell_exec(sprintf("echo Müllbot konnte keine Daten empfangen | %s -u %d", $config['pathBot'], $config['tgBotOwner']));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user