Browse Source

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

develop
Hauke Zühl 4 years ago
parent
commit
212412d844
  1. 3
      php/muell.php

3
php/muell.php

@ -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']));
}

Loading…
Cancel
Save