forked from bida/MastodonMegafono
update bot
This commit is contained in:
parent
79e0ad70d7
commit
ed67f90f49
1 changed files with 0 additions and 11 deletions
|
@ -10,21 +10,10 @@ SLEEP_INTERVAL=3h
|
||||||
# File containing the toots to post
|
# File containing the toots to post
|
||||||
DATA_FILE=test.txt
|
DATA_FILE=test.txt
|
||||||
|
|
||||||
# A prefix for all toots of this bot
|
|
||||||
TOOT_PREFIX="#avviso%0A"
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# CONFIGURATION END
|
# CONFIGURATION END
|
||||||
#
|
#
|
||||||
|
|
||||||
extract_image() {
|
|
||||||
sed -n -e 's/.*<img>\(.*\)<\/img>.*/\1/p' <<< $1
|
|
||||||
}
|
|
||||||
|
|
||||||
extract_text() {
|
|
||||||
sed -e "s/<img>.*<\/img>/ /g" <<< $1
|
|
||||||
}
|
|
||||||
|
|
||||||
while :
|
while :
|
||||||
do
|
do
|
||||||
# Last line should be empty, so we dont need an additional read here
|
# Last line should be empty, so we dont need an additional read here
|
||||||
|
|
Loading…
Reference in a new issue