From 2138293797353ba7bf36254e4b4b7d70abdbbe41 Mon Sep 17 00:00:00 2001 From: rzen Date: Sat, 20 Jul 2024 09:26:36 -0400 Subject: [PATCH] switch to icanhazdadjoke.com for source of jokes --- run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.sh b/run.sh index 1eacef9..77d7328 100755 --- a/run.sh +++ b/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