Quarterly commit of changes. - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit 0d34d3fa3e153cfe4996b76b30db1f2ce401b189 DIR parent 6bd93f2c6f8c9b5a158740dd54d7662c19324856 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Sun, 11 Nov 2018 10:32:53 +0100 Quarterly commit of changes. * Messages * fix phlog index Diffstat: M annna-start-services | 19 ++++++++++++++++--- M phlog-index | 2 +- 2 files changed, 17 insertions(+), 4 deletions(-) --- DIR diff --git a/annna-start-services b/annna-start-services @@ -103,8 +103,13 @@ then annna-say -c "#bitreich-en" "We got clownflared: gopher://bitreich.org/0/ascii/clownflare.vt" ;; *) - purl="$(curl -sL "${uri}" | 9 htmlfmt | /br/bin/bitreich-paste)" - annna-say -c "#bitreich-en" "content: ${purl} ; HTML title: ${urititle}" + if expr "${uri}" : '^https*://[^/]*youtu\(\.be\|be\..\{2,3\}\)/' + then + annna-say -c "#bitreich-en" "HTML title: ${urititle}" + else + purl="$(curl -sL "${uri}" | 9 htmlfmt | /br/bin/bitreich-paste)" + annna-say -c "#bitreich-en" "content: ${purl} ; HTML title: ${urititle}" + fi ;; esac fi @@ -169,6 +174,12 @@ then annna-say -c "#bitreich-en" "$outtext" fi + if [ "${text}" = "${botname}, what's up?" ]; + then + newsstr="$(ecl -shell /home/solene/gopher/bin/generator.lisp)" + annna-say -c "#bitreich-en" "$newsstr" + fi + if [ "${text}" = "${botname}, oh hai!" ]; then annna-say -c "#bitreich-en" "${user}, hai! How is your sex life?" @@ -316,7 +327,7 @@ then if [ "${text}" = "${botname}, please update the phlog index." ]; then - phlog-index.sh > /dev/null 2>&1 + phlog-index > /dev/null 2>&1 annna-say -c "#bitreich-en" "Thank you for your kind request. I have done so." continue; fi @@ -338,6 +349,8 @@ then sleep 0.5 annna-say -c "${user}" "»please dance.«, ${user}." sleep 0.5 + annna-say -c "${user}" "»what's up?«, ${user}." + sleep 0.5 annna-say -c "${user}" "»please update the phlog index.«, ${user}." sleep 0.5 annna-say -c "${user}" "»sudo make me a sandwich«, ${user}." DIR diff --git a/phlog-index b/phlog-index @@ -14,7 +14,7 @@ fi base="$HOME/phlogs" cache="$base/cache" gopherbase="/usr/%s/phlog/%s" -ircchans="#bitreich-en #bitreich-de #bitreich-fr" +ircchans="#bitreich-en #bitreich-de #bitreich-fr #bitreich-con" find /home/*/gopher/phlog \ -name "*.md" \