4
0
Fork 1
forked from encrypt/toot
MastodonMegafono/megafono_bot.sh
2019-02-20 16:45:55 +00:00

27 lines
No EOL
372 B
Bash
Executable file

#!/bin/bash
#
# CONFIGURATION
#
# Interval between two consecutive posts
SLEEP_INTERVAL=3h
# File containing the toots to post
DATA_FILE=test.txt
#
# CONFIGURATION END
#
while :
do
# Last line should be empty, so we dont need an additional read here
# after the while loop
while read line
do
./toot.sh $line
sleep ${SLEEP_INTERVAL}
done < ${DATA_FILE}
done