switch to icanhazdadjoke.com for source of jokes

This commit is contained in:
Rouslan Zenetl 2024-07-20 09:26:36 -04:00
parent c9c24300c2
commit 2138293797

4
run.sh
View File

@ -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