New danstonchat website

This commit is contained in:
gardouille 2024-10-07 07:26:14 +02:00
parent e19ea4e5c4
commit 98d3f756de
Signed by: gardouille
GPG Key ID: E759BAA22501AF32

View File

@ -3,7 +3,12 @@
# Description: Get a quot from http://danstonchat.com # Description: Get a quot from http://danstonchat.com
if [ $(command -v lynx) ]; then 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 else
printf '%b' "Please install lynx package.\n" printf '%b' "Please install lynx package.\n"
fi fi