From 212412d844aa33263dbc030a031ac90fa27397a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hauke=20Z=C3=BChl?= Date: Thu, 5 Mar 2020 18:58:40 +0100 Subject: [PATCH] Adding tgBotOwner to config, sending error message to that ID in case of curl failed --- php/muell.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/php/muell.php b/php/muell.php index 6c87a36..242c7be 100755 --- a/php/muell.php +++ b/php/muell.php @@ -15,6 +15,7 @@ * kommune: 2601 * strasse: 2146 * pathBot: '~/bin/YMBot' + * tgBotOwner: */ $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'])); }