This repository has been archived on 2024-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
TelegramPoster/loop.sh

17 lines
366 B
Bash
Raw Normal View History

2022-08-09 13:30:36 +03:00
#!/bin/bash
# You can cd to your directory here, if you want
# cd /home/user/TelegramPoster
while true
do
2022-08-30 14:51:24 +03:00
python poster.py
2022-08-09 13:30:36 +03:00
echo "To completely stop TelegramPoster now, please press Ctrl+C during the countdown!"
echo "Restarting in:"
for i in 5 4 3 2 1
do
echo "$i..."
sleep 1
done
echo "TelegramPoster has started!"
done