switch to icanhazdadjoke.com for source of jokes
This commit is contained in:
parent
c9c24300c2
commit
2138293797
4
run.sh
4
run.sh
@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
while true; do
|
||||
export joke=`shuf -n 1 kids-jokes.txt`
|
||||
timeout --foreground -vs9 5m watch -tn60 ./dash.sh
|
||||
export joke=$(curl -s -H "Accept: text/plain" https://icanhazdadjoke.com/)
|
||||
timeout --foreground -vs9 3m watch -tn60 ./dash.sh
|
||||
if [ $? -eq 0 ]; then
|
||||
reset
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user