From 98d3f756de2d1db1d456e2f4253a10efbd379a0d Mon Sep 17 00:00:00 2001 From: Gardouille Date: Mon, 7 Oct 2024 07:26:14 +0200 Subject: [PATCH] New danstonchat website --- bash_quote | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bash_quote b/bash_quote index 9c3c86c..4b14b3e 100755 --- a/bash_quote +++ b/bash_quote @@ -3,7 +3,12 @@ # Description: Get a quot from http://danstonchat.com if [ $(command -v lynx) ]; then - lynx -connect_timeout=2 --dump --display_charset=utf8 http://danstonchat.com/random0.html | awk '$0~".*Betamod" && $0!~"Score" { getline; while ($0!~"Score") { print $0; getline;}; exit }' + + #lynx -connect_timeout=2 --dump --display_charset=utf8 http://danstonchat.com/random0.html | awk '$0~".*Betamod" && $0!~"Score" { getline; while ($0!~"Score") { print $0; getline;}; exit }' + + # 2024/09/26 New danstonchat website + lynx -connect_timeout=2 --dump --display_charset=utf8 https://danstonchat.com/random | awk '$0~"^\\[" && $0!~"Le|Error happened." { getline; while ($0!~"Le|Error happened.") { print $0 ; getline ; }; exit }' + else printf '%b' "Please install lynx package.\n" fi