update bot
这个提交包含在:
父节点
79e0ad70d7
当前提交
ed67f90f49
共有 1 个文件被更改,包括 0 次插入 和 11 次删除
|
@ -10,21 +10,10 @@ SLEEP_INTERVAL=3h
|
|||
# File containing the toots to post
|
||||
DATA_FILE=test.txt
|
||||
|
||||
# A prefix for all toots of this bot
|
||||
TOOT_PREFIX="#avviso%0A"
|
||||
|
||||
#
|
||||
# CONFIGURATION END
|
||||
#
|
||||
|
||||
extract_image() {
|
||||
sed -n -e 's/.*<img>\(.*\)<\/img>.*/\1/p' <<< $1
|
||||
}
|
||||
|
||||
extract_text() {
|
||||
sed -e "s/<img>.*<\/img>/ /g" <<< $1
|
||||
}
|
||||
|
||||
while :
|
||||
do
|
||||
# Last line should be empty, so we dont need an additional read here
|
||||
|
|
正在加载…
在新工单中引用