aboutsummaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorXe <me@christine.website>2022-04-28 03:22:06 +0000
committerXe <me@christine.website>2022-04-28 03:22:06 +0000
commit3f3db571681bf383e5d87af0f5903dd53fc0ff7a (patch)
tree6563eb8ec56f88b148ea956859de8b4d9456992f /run
parentf0e05faa014743f8c784dbd2aec7c5260828f1e3 (diff)
downloadx-3f3db571681bf383e5d87af0f5903dd53fc0ff7a.tar.xz
x-3f3db571681bf383e5d87af0f5903dd53fc0ff7a.zip
update preflight
Signed-off-by: Xe <me@christine.website>
Diffstat (limited to 'run')
-rw-r--r--run/robocadey.preflight.sh7
-rw-r--r--run/robocadey.service.in1
2 files changed, 5 insertions, 3 deletions
diff --git a/run/robocadey.preflight.sh b/run/robocadey.preflight.sh
index 7fcb2e9..04be027 100644
--- a/run/robocadey.preflight.sh
+++ b/run/robocadey.preflight.sh
@@ -1,8 +1,11 @@
#!/usr/bin/env bash
-rm tweet_minimal.json
sed 's/window.YTD.tweet.part0 = //' < tweets.js \
| jq '.[] | [ select(.tweet.retweeted == false) ] | .[].tweet.full_text' \
| sed -r 's/\s*\.?@[A-Za-z0-9_]+\s*//g' \
| grep -v 'RT:' \
- | jq --slurp . > tweet_minimal.json
+ | jq --slurp . \
+ | jq -r .[] \
+ | sed -e 's!http[s]\?://\S*!!g' \
+ | sed '/^$/d' \
+ > tweets.txt
diff --git a/run/robocadey.service.in b/run/robocadey.service.in
index 1ed58cf..77327b9 100644
--- a/run/robocadey.service.in
+++ b/run/robocadey.service.in
@@ -2,7 +2,6 @@
Description=Robo-Cadey
[Service]
-ExecStartPre=@preflight@/bin/preflight
ExecStartPre=@robocadey@/bin/robocadey --read-from=./robocadey.gob
ExecStart=@robocadey@/bin/robocadey
StateDirectory=xeserv.robocadey