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