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
364 B
Bash

#!/bin/bash
# You can cd to your directory here, if you want
# cd /home/user/TelegramPoster
while true
do
python main.py
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