Adding tgBotOwner to config, sending error message to that ID in case of curl failed

This commit is contained in:
Hauke Zühl 2020-03-05 18:58:40 +01:00
parent baaa2990da
commit 212412d844

View File

@ -15,6 +15,7 @@
* kommune: 2601
* strasse: 2146
* pathBot: '~/bin/YMBot'
* tgBotOwner: <hier DEINE Telegram-ID eintragen>
*/
$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']));
}