From b6b0f55b8289a472205ba8b895d659ab61fe2be0 Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Sat, 11 Nov 2023 23:49:41 +0500 Subject: [PATCH] loop the whole thing --- bot.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bot.sh b/bot.sh index cbba69f..82f642a 100755 --- a/bot.sh +++ b/bot.sh @@ -1,6 +1,9 @@ #!/bin/bash source .env + +while true; do + date=$(date "+%Y%m%d_%H%M%S") image=data/image_$date.png speedtest_result=data/speedtest_$date.txt @@ -67,3 +70,7 @@ curl -X POST https://api.telegram.org/bot$TG_BOT_API_KEY/sendPhoto \ -F caption="$caption" \ -F parse_mode=Markdown ################################################################################# + +sleep $DELAY + +done