loop the whole thing

This commit is contained in:
Shihaam Abdul Rahman 2023-11-11 23:49:41 +05:00
parent 07e74e6d07
commit b6b0f55b82
Signed by untrusted user: shihaam
GPG Key ID: 6DA2E87EBC227636

7
bot.sh
View File

@ -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