Reshuffle meme command to non-members and add meme list command. - 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 967ff693bc1972dd98442c9493d1ac635a636803 DIR parent 05785a1cd17d736a804f581265405d0158d57f10 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Thu, 16 Jan 2020 17:49:15 +0100 Reshuffle meme command to non-members and add meme list command. Diffstat: M annna-start-services | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) --- DIR diff --git a/annna-start-services b/annna-start-services @@ -277,6 +277,19 @@ then done fi + if [ "${text}" = "${botname}, how many memes do you know?" ]; + then + annna-say -c "#bitreich-en" "I know $(hashtagcount) memes." + continue; + fi + + if [ "${text}" = "${botname}, please show me your memes." ]; + then + purl="$(printf "%s" "$(hashtags)" | /br/bin/bitreich-paste)" + annna-say -c "#bitreich-en" "Here are my memes: ${purl}" + continue; + fi + ismember=0 for member in $brmembers; do @@ -338,12 +351,6 @@ then continue; fi - if [ "${text}" = "${botname}, how many memes do you know?" ]; - then - annna-say -c "#bitreich-en" "I know $(hashtagcount) memes." - continue; - fi - if [ "${text}" = "${botname}, can you show me the uptime please?" ]; then annna-say -c "#bitreich-en" "$(hostname) uptime: $(uptime)" @@ -438,7 +445,9 @@ then if [ "${text}" = "${botname}, please help." ]; then # TODO: Add multiple line support to annna-say -c(1) with sleep. - annna-say -c "${user}" "Âhow many memes do you know?« gets you thenumber of memes annna knows, ${user}." + annna-say -c "${user}" "»how many memes do you know?«gets you the number of memes annna knows, ${user}." + 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}" "»can you show me the uptime please?« gets you the uptime, ${user}." sleep 0.5