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
|
#!/bin/bash
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
export joke=`shuf -n 1 kids-jokes.txt`
|
export joke=$(curl -s -H "Accept: text/plain" https://icanhazdadjoke.com/)
|
||||||
timeout --foreground -vs9 5m watch -tn60 ./dash.sh
|
timeout --foreground -vs9 3m watch -tn60 ./dash.sh
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
reset
|
reset
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user