Add victims support to annna. - 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 251469400d8dd65842d8f233fce71b7ed35298be DIR parent 7b0798cc5b8b299d1262ba85324e88a8dc66ca60 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Sun, 28 Jun 2020 14:02:10 +0200 Add victims support to annna. Diffstat: M annna-start-services | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) --- DIR diff --git a/annna-start-services b/annna-start-services @@ -374,6 +374,10 @@ annna_common() { puri="$(printf "%s" "$(hashtags)" | /br/bin/bitreich-paste)" annna-say -c "${channel}" "Here are my memes: ${puri}" ;; + "${botname}, please show me the victims.") + puri="$(printf "%s" "$(hashtags)" | grep victim | /br/bin/bitreich-paste)" + annna-say -c "${channel}" "Here are the victims: ${puri}" + ;; "${botname}, please distro-hop with me.") ndistro="$(curl -s 'https://distrowatch.com/dwres.php?resource=popularity' \ | grep phr2 \ @@ -486,6 +490,8 @@ annna_common() { sleep 0.5 annna-say -c "${user}" "»please show me your memes.« gets you all memes anna knows, ${user}." sleep 0.5 + annna-say -c "${user}" "»please show me the victims.« gets you all victims anna knows, ${user}." + sleep 0.5 annna-say -c "${user}" "»can you show me the uptime please?« gets you the uptime, ${user}." sleep 0.5 annna-say -c "${user}" "»please show me the load, ${user}."