Fix annna-say in annna-message-common. - 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 59d0f0d327aec67e46501df87d9bdeec83470d7e DIR parent 9f05b1afe3c9c74295646627b59868bc148a47d8 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Fri, 31 Dec 2021 13:25:17 +0100 Fix annna-say in annna-message-common. Diffstat: M annna-message-common | 302 ++++++++++++++++---------------- 1 file changed, 151 insertions(+), 151 deletions(-) --- DIR diff --git a/annna-message-common b/annna-message-common @@ -70,10 +70,10 @@ case "${text}" in then case "${urititle}" in *Gunther*|*GUNTHER*|*Günther*) - annna-say -c "${channel}" "Oh Günther! ❤ ❤ ❤ ${urititle}" + annna-say -s "${server}" -c "${channel}" "Oh Günther! ❤ ❤ ❤ ${urititle}" ;; *\|\ Cloudflare*) - annna-say -c "${channel}" "Mind your own business! We got clownflared: gopher://bitreich.org/0/ascii/clownflare.vt" + annna-say -s "${server}" -c "${channel}" "Mind your own business! We got clownflared: gopher://bitreich.org/0/ascii/clownflare.vt" titleend=1 ;; esac @@ -191,7 +191,7 @@ case "${text}" in [ -n "${urititle}" ] && outputstr="${outputstr} title: ${urititle} ;" [ -n "${suri}" ] && outputstr="${outputstr} screen: ${suri} ;" [ -n "${sturi}" ] && outputstr="${outputstr} subtitles: ${sturi} ;" - annna-say -c "${channel}" "${outputstr}" + annna-say -s "${server}" -c "${channel}" "${outputstr}" fi rm -f "${tmpf}" fi @@ -201,10 +201,10 @@ esac case "${text}" in *"don't care"*) dontcaresay="$(shuf -n 1 ${idontcaredb})" - annna-say -c "${channel}" "${user}, ${dontcaresay}" + annna-say -s "${server}" -c "${channel}" "${user}, ${dontcaresay}" ;; "${botname}, how can I phlog on bitreich?") - annna-say -c "${channel}" "${user}, please read: gopher://bitreich.org/0/usr/20h/phlog/2017-08-26T20-04-02-482296.md and gopher://bitreich.org/0/usr/20h/phlog/2017-08-26T20-27-40-281825.md" + annna-say -s "${server}" -c "${channel}" "${user}, please read: gopher://bitreich.org/0/usr/20h/phlog/2017-08-26T20-04-02-482296.md and gopher://bitreich.org/0/usr/20h/phlog/2017-08-26T20-27-40-281825.md" ;; "${botname}, what is "*) word="$(printf "%s\n" "${text}" | cut -c 16-)" @@ -252,7 +252,7 @@ case "${text}" in ;; esac esac - annna-say -c "${channel}" "${puri}" + annna-say -s "${server}" -c "${channel}" "${puri}" ;; "${botname}, cowsay "*) word="$(printf "%s\n" "${text}" | cut -c 15-)" @@ -260,7 +260,7 @@ case "${text}" in cowsayasaservice ${word} > ${tmpf} if [ $? -eq 0 ]; then curi="$(/br/bin/bitreich-paste < ${tmpf})" - annna-say -c "${channel}" "${user}: the cow said... ${curi}" + annna-say -s "${server}" -c "${channel}" "${user}: the cow said... ${curi}" fi rm ${tmpf} 2>/dev/null ;; @@ -268,18 +268,18 @@ case "${text}" in upcuri="$(unix-power)" if [ -n "${upcuri}" ]; then - annna-say -c "${channel}" "${user}, ${upcuri}" + annna-say -s "${server}" -c "${channel}" "${user}, ${upcuri}" fi ;; "${botname}, play despacito plz.") - annna-say -c "${channel}" "${user}, gopher://bitreich.org/9/memecache/despacito.mkv" + annna-say -s "${server}" -c "${channel}" "${user}, gopher://bitreich.org/9/memecache/despacito.mkv" ;; "${botname}, please give me a Chuck Norris fact.") chuck=$(chucknorris) - annna-say -c "${channel}" "${user}, ${chuck}" + annna-say -s "${server}" -c "${channel}" "${user}, ${chuck}" ;; "${botname}, please show me ip art.") - annna-say -c "${channel}" "${user}, please see #bitreich-tv for the magic." + annna-say -s "${server}" -c "${channel}" "${user}, please see #bitreich-tv for the magic." { cd $HOME/bin/modules/ip-art; # Lock, so only one annna process manipulates eth0. @@ -290,9 +290,9 @@ case "${text}" in buri="$(button-gen)" if [ -n "${buri}" ]; then - annna-say -c "${channel}" "${user}, like this? ${buri}" + annna-say -s "${server}" -c "${channel}" "${user}, like this? ${buri}" else - annna-sax -c "${channel}" "${user}, sorry, no feelings for you today." + annna-say -s "${server}" -c "${channel}" "${user}, sorry, no feelings for you today." fi ;; "${botname}, I feel stupid.") @@ -300,51 +300,51 @@ case "${text}" in tmpf=$(mktemp) fetch-uri "${nuri}" > "${tmpf}" curi="$(9 htmlfmt < "${tmpf}" | /br/bin/bitreich-paste)" - annna-say -c "${channel}" "${user}, do not feel stupid, others are more stupid: ${curi}" + annna-say -s "${server}" -c "${channel}" "${user}, do not feel stupid, others are more stupid: ${curi}" rm ${tmpf} 2>/dev/null ;; "${botname}, I feel down.") postmortem="$(post-mortem | /br/bin/bitreich-paste)" - annna-say -c "${channel}" "${user}, do not feel bad, others had worse days: ${postmortem}" + annna-say -s "${server}" -c "${channel}" "${user}, do not feel bad, others had worse days: ${postmortem}" ;; "${botname}, I feel perl.") perlfeelings="$(perl-feelings)" if [ -n "${perl-feelings}" ]; then - annna-say -c "${channel}" "${user}, I feel ${perlfeelings}" + annna-say -s "${server}" -c "${channel}" "${user}, I feel ${perlfeelings}" fi ;; "${botname}, will you be my girlfriend?") rejection="$(girlfriend)" - annna-say -c "${channel}" "${user}, ${rejection}" + annna-say -s "${server}" -c "${channel}" "${user}, ${rejection}" ;; "${botname}, who fights crime?"|"${botname}, who is fighting crime?") partner=$(echo $brmembers | awk '{for (i = 1; i < NF; i++) print $i}' | grep -v "^{$user}" | shuf -n 1) crimefighter="$(theyfightcrime ${user} ${partner})" - annna-say -c "${channel}" "${crimefighter}" + annna-say -s "${server}" -c "${channel}" "${crimefighter}" ;; "${botname}, please give me a commit message.") commitmsg="$(whatthecommit)" - annna-say -c "${channel}" "${commitmsg}" + annna-say -s "${server}" -c "${channel}" "${commitmsg}" ;; "${botname}, birp.") birdname="$(bird-name)" - annna-say -c "${channel}" "${user}, I heard a ${birdname} bird." + annna-say -s "${server}" -c "${channel}" "${user}, I heard a ${birdname} bird." ;; "${botname}, please oneline me.") randomoneliner="$(oneliner)" if [ -z "${randomoneliner}" ]; then - annna-say -c "${channel}" "${user}, the service failed. Please redial to your BOL account." + annna-say -s "${server}" -c "${channel}" "${user}, the service failed. Please redial to your BOL account." else - annna-say -c "${channel}" "${user}, ${randomoneliner}" + annna-say -s "${server}" -c "${channel}" "${user}, ${randomoneliner}" fi ;; *"what's app?") maemoapp="$(whatsapp)" if [ -n "${maemoapp}" ]; then - annna-say -c "${channel}" "Have you tried? ${maemoapp}" + annna-say -s "${server}" -c "${channel}" "Have you tried? ${maemoapp}" fi ;; "${botname}, man "*|"${botname}, man "*) @@ -358,26 +358,26 @@ case "${text}" in puri="No matches found." fi - annna-say -c "${channel}" "${puri}" + annna-say -s "${server}" -c "${channel}" "${puri}" ;; "${botname}, please pray for me.") - annna-say -c "${channel}" "${user}, here, for you: gopher://bitreich.org/9/memecache/llaminim.mkv" + annna-say -s "${server}" -c "${channel}" "${user}, here, for you: gopher://bitreich.org/9/memecache/llaminim.mkv" ;; "${botname}, nigger.") nword="$(n-word)" - annna-say -c "${channel}" "${user}, don't use the ${nword}!" + annna-say -s "${server}" -c "${channel}" "${user}, don't use the ${nword}!" ;; "${botname}, why was I breached?") breachtext="$(why-was-i-breached)" if [ -n "${breachtext}" ]; then - annna-say -c "${channel}" "${user}, ${breachtext}" + annna-say -s "${server}" -c "${channel}" "${user}, ${breachtext}" fi ;; "${botname}, please say "*) word="$(printf "%s\n" "${text}" | cut -c 19- | sed 's,\t, ,g')" suri="$(printf "%s\n" "${word}" | bitreich-speak)" - annna-say -c "${channel}" "${suri}" + annna-say -s "${server}" -c "${channel}" "${suri}" ;; "${botname}, what can I cook with "*) ingredients="$(printf "%s\n" "${text}" | cut -c 29- | sed 's,\t, ,g')" @@ -391,9 +391,9 @@ case "${text}" in if [ -n "${results}" ]; then puri="$(printf "%s\n" "${results}" | bitreich-paste)" - annna-say -c "${channel}" "${user}, here are some recipes: ${puri}" + annna-say -s "${server}" -c "${channel}" "${user}, here are some recipes: ${puri}" else - annna-say -c "${channel}" "${user}, I could not find any recipes for you." + annna-say -s "${server}" -c "${channel}" "${user}, I could not find any recipes for you." fi ;; "${botname}, wolfram is "*) @@ -441,15 +441,15 @@ case "${text}" in else puri="No matches found." fi - annna-say -c "${channel}" -- "${puri}" + annna-say -s "${server}" -c "${channel}" -- "${puri}" ;; "${botname}, pray"*) # Emulate https://threats.kaspersky.com/en/threat/IRC-Worm.DOS.Septic/ - annna-say -c "${channel}" "${user}, I Obey my master! long live satan" + annna-say -s "${server}" -c "${channel}" "${user}, I Obey my master! long live satan" ;; "${botname}, sacrifice"*) # Emulate https://threats.kaspersky.com/en/threat/IRC-Worm.DOS.Septic/ - annna-say -c "${channel}" "${user}, Your word is my command, Power to satan!" + annna-say -s "${server}" -c "${channel}" "${user}, Your word is my command, Power to satan!" ;; "${botname}, textsynth is "*) word="$(printf "%s\n" "${text}" | cut -c 21- | sed 's,\t, ,g')" @@ -468,7 +468,7 @@ case "${text}" in else puri="Textsynth did not answer." fi - annna-say -c "${channel}" "textsynth result: ${puri}" + annna-say -s "${server}" -c "${channel}" "textsynth result: ${puri}" } & ;; @@ -483,9 +483,9 @@ case "${text}" in newword="$(discrimination-filter "${word}")" if [ "${newword}" = "${word}" ]; then - annna-say -c "${channel}" "${user}, it is ok." + annna-say -s "${server}" -c "${channel}" "${user}, it is ok." else - annna-say -c "${channel}" "${user}, it should be: ${newword}" + annna-say -s "${server}" -c "${channel}" "${user}, it should be: ${newword}" fi ;; @@ -496,65 +496,65 @@ case "${text}" in lovedistance="$(printf "%s * 100\n" "$(fstrcmp ${words})" | bc | cut -d'.' -f 1)" if [ $lovedistance -gt 15 ]; then - annna-say -c "${channel}" 'Yes!!! Pure <3 <3' + annna-say -s "${server}" -c "${channel}" 'Yes!!! Pure <3 <3' else - annna-say -c "${channel}" "No." + annna-say -s "${server}" -c "${channel}" "No." fi ;; esac ;; "Ok, ${botname}"*) - annna-say -c "${channel}" "${user}, I am not a consumer device." + annna-say -s "${server}" -c "${channel}" "${user}, I am not a consumer device." ;; "ok, ${botname}"*) - annna-say -c "${channel}" "${user}, I am not a consumer device." + annna-say -s "${server}" -c "${channel}" "${user}, I am not a consumer device." ;; "${botname}, please shoot "*|"${botname}, plese shoot "*) word="$(printf "%s\n" "${text}" | cut -c 21-)" - annna-say -c "${channel}" "${word}, pew pew." + annna-say -s "${server}" -c "${channel}" "${word}, pew pew." ;; "${botname}, please flip "*) word="$(printf "%s\n" "${text}" | cut -c 20-)" updownword="$(updown "${word}")" - annna-say -c "${channel}" "${word} -> ${updownword}" + annna-say -s "${server}" -c "${channel}" "${word} -> ${updownword}" ;; "${botname}, please give me a good band name.") bandname="$(bandname-gen | shuf | head -n 1)" - annna-say -c "${channel}" "${bandname}" + annna-say -s "${server}" -c "${channel}" "${bandname}" ;; "${botname}, I am horny.") essaypaste="$(bithub-gen)" - annna-say -c "${channel}" \ + annna-say -s "${server}" -c "${channel}" \ "Here is some intellectual porn for you: ${essaypaste}" ;; "${botname}, please turn on "*) word="$(printf "%s\n" "${text}" | cut -c 22-)" - annna-say -c "${channel}" "☞ ⏻ ${word}" + annna-say -s "${server}" -c "${channel}" "☞ ⏻ ${word}" ;; "${botname}, please turn me on.") - annna-say -c "${channel}" "☞ ⏻ ${user}" + annna-say -s "${server}" -c "${channel}" "☞ ⏻ ${user}" ;; "${botname}, I'm game bored.") gamelink="$(abandonware-random-game)" if [ -z "${gamelink}" ]; then - annna-say -c "${channel}" "${user}, sorry I have found nothing for you." + annna-say -s "${server}" -c "${channel}" "${user}, sorry I have found nothing for you." else - annna-say -c "${channel}" "${user}, have you tried ${gamelink} ?" + annna-say -s "${server}" -c "${channel}" "${user}, have you tried ${gamelink} ?" fi ;; "${botname}, I need a waifu.") waifuuris="$(waifu-gen)" if [ -n "${waifuuris}" ]; then - annna-say -c "${channel}" "${user}, ${waifuuris}" + annna-say -s "${server}" -c "${channel}" "${user}, ${waifuuris}" fi ;; "${botname}, I need an anime.") animeuri="$(anime-gen)" if [ -n "${animeuri}" ]; then - annna-say -c "${channel}" "${user}, ${animeuri}" + annna-say -s "${server}" -c "${channel}" "${user}, ${animeuri}" fi ;; "${botname}, I'm gopher bored.") @@ -573,68 +573,68 @@ case "${text}" in then outtext="$(printf "%s/%s%s" "$outtext" "$linktype" "$linksel")" fi - annna-say -c "${channel}" "$outtext" + annna-say -s "${server}" -c "${channel}" "$outtext" ;; "${botname}, wb.") - annna-say -c "${channel}" "${user}, ty! I am so happy to be here. :)" + annna-say -s "${server}" -c "${channel}" "${user}, ty! I am so happy to be here. :)" ;; "${botname}, welcome back.") - annna-say -c "${channel}" "${user}, thank you! I am so happy to be here. :)" + annna-say -s "${server}" -c "${channel}" "${user}, thank you! I am so happy to be here. :)" ;; "${botname}, what's up?") newsstr="$(ecl -shell /home/solene/gopher/bin/generator.lisp)" - annna-say -c "${channel}" "$newsstr" + annna-say -s "${server}" -c "${channel}" "$newsstr" ;; "${botname}, what's down?") - annna-say -c "${channel}" "${user}, we all love you." + annna-say -s "${server}" -c "${channel}" "${user}, we all love you." ;; *"ACTION cancels "*) mobtarget="$(printf "%s\n" "${text}" | sed 's,.*ACTION cancels \(.*\)\x01,\1,')" cancel-target "${mobtarget}" - annna-say -c "${channel}" "${user}, I cancelled ${mobtarget} for you. ( gopher://bitreich.org/I/memecache/cancel-meteor.jpg )" + annna-say -s "${server}" -c "${channel}" "${user}, I cancelled ${mobtarget} for you. ( gopher://bitreich.org/I/memecache/cancel-meteor.jpg )" ;; "${botname}, please show me the mob"*|"${botname}, what are the mob"*) canceluri="$(get-cancel-list)" - annna-say -c "${channel}" "${user}, ${canceluri}" + annna-say -s "${server}" -c "${channel}" "${user}, ${canceluri}" ;; "${botname}, I feel sick.") newsstr="$(cd /br/gopher/hypochondria && ./hypochondria -s random)" - annna-say -c "${channel}" "You could have ${newsstr}! Be careful!" + annna-say -s "${server}" -c "${channel}" "You could have ${newsstr}! Be careful!" ;; *"oh hai"*|*"ohai"*|*"ohhai"*) - annna-say -c "${channel}" "${user}, hai! How is your sex life?" + annna-say -s "${server}" -c "${channel}" "${user}, hai! How is your sex life?" ;; "o/"|"o/ "*|"\o"|"\o "*|"o7"|"o7 "*) - annna-say -c "${channel}" "${user}, ${text}" + annna-say -s "${server}" -c "${channel}" "${user}, ${text}" ;; *"*waves*"*|*"*wave*"*) - annna-say -c "${channel}" "${user}, *wave*" + annna-say -s "${server}" -c "${channel}" "${user}, *wave*" ;; "${botname}, please tech hype me.") techstr="$(${modbase}/markov_tech/markov)" - annna-say -c "${channel}" "${techstr}" + annna-say -s "${server}" -c "${channel}" "${techstr}" ;; "${botname}, please coffee read "*) readtarget="$(printf "%s\n" "${text}" | cut -c 27-)" horostr="$($HOME/scm/bullshit/horoscope)" - annna-say -c "${channel}" "${readtarget}, ${horostr}" + annna-say -s "${server}" -c "${channel}" "${readtarget}, ${horostr}" ;; "${botname}, what's my horoscope?") horostr="$($HOME/scm/bullshit/horoscope)" - annna-say -c "${channel}" "${user}, ${horostr}" + annna-say -s "${server}" -c "${channel}" "${user}, ${horostr}" ;; "${botname}, what should I cook"*) recipestr="$(based.recipe)" if [ -n "${recipestr}" ]; then - annna-say -c "${channel}" "${user}, ${recipestr}" + annna-say -s "${server}" -c "${channel}" "${user}, ${recipestr}" else - annna-say -c "${channel}" "${user}, I have no recommendation for you today." + annna-say -s "${server}" -c "${channel}" "${user}, I have no recommendation for you today." fi ;; "${botname}, what's my future?") puri="$(sacc gopher://parazyd.org/0/tarot.cgi | /br/bin/bitreich-paste)" - annna-say -c "${channel}" "${user}, your future is here: ${puri}" + annna-say -s "${server}" -c "${channel}" "${user}, your future is here: ${puri}" ;; "${botname}, haha.") { @@ -642,151 +642,151 @@ case "${text}" in wuri="$(github-haha)" if [ -n "${wuri}" ]; then - annna-say -c "${channel}" "${user}, haha ${wuri}" + annna-say -s "${server}" -c "${channel}" "${user}, haha ${wuri}" fi } & ;; "${botname}, how many memes do you know?") - annna-say -c "${channel}" "I know $(hashtagcount) memes: gopher://bitreich.org/1/meme/count" + annna-say -s "${server}" -c "${channel}" "I know $(hashtagcount) memes: gopher://bitreich.org/1/meme/count" ;; "${botname}, how many people died of corona?") - annna-say -c "${channel}" "${user}, too many. :( Please see yourself: gopher://magical.fish/1/covid" + annna-say -s "${server}" -c "${channel}" "${user}, too many. :( Please see yourself: gopher://magical.fish/1/covid" ;; "${botname}, please show me your memes.") puri="$(printf "%s" "$(hashtags)" | /br/bin/bitreich-paste)" - annna-say -c "${channel}" "Here are my memes: ${puri}" + annna-say -s "${server}" -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}" + annna-say -s "${server}" -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 \ | sed 's,.*href="\(.*\)".*,\1,' \ | sort | uniq | shuf -n 1)" - annna-say -c "${channel}" "How about https://distrowatch.com/${ndistro} ?" + annna-say -s "${server}" -c "${channel}" "How about https://distrowatch.com/${ndistro} ?" ;; "${botname}, please show me your Macron.") - annna-say -c "${channel}" "gopher://bitreich.org/0/ascii/macron.vt" + annna-say -s "${server}" -c "${channel}" "gopher://bitreich.org/0/ascii/macron.vt" ;; "${botname}, release the Kraken!") - annna-say -c "${channel}" "Here it is! gopher://bitreich.org/0/memecache/kraken.vt" + annna-say -s "${server}" -c "${channel}" "Here it is! gopher://bitreich.org/0/memecache/kraken.vt" ;; "${botname}, release the Quacken!") - annna-say -c "${channel}" "Quack Quack! gopher://bitreich.org/9/memecache/release-the-quacken.mkv" + annna-say -s "${server}" -c "${channel}" "Quack Quack! gopher://bitreich.org/9/memecache/release-the-quacken.mkv" ;; "${botname}, be cool.") case "$(($RANDOM % 5))" in 0) - annna-say -c "${channel}" "(⌐■_■)" + annna-say -s "${server}" -c "${channel}" "(⌐■_■)" ;; 1) - annna-say -c "${channel}" "(▰˘◡˘▰)" + annna-say -s "${server}" -c "${channel}" "(▰˘◡˘▰)" ;; 2) - annna-say -c "${channel}" "(▀ Ĺ▀ )̄" + annna-say -s "${server}" -c "${channel}" "(▀ Ĺ▀ )̄" ;; 3) - annna-say -c "${channel}" "(▀Ĺ▀ )" + annna-say -s "${server}" -c "${channel}" "(▀Ĺ▀ )" ;; *) - annna-say -c "${channel}" "I can't be cool! gopher://bitreich.org/9/memecache/i-cant-be-cool.mp3" + annna-say -s "${server}" -c "${channel}" "I can't be cool! gopher://bitreich.org/9/memecache/i-cant-be-cool.mp3" ;; esac ;; "${botname}, please cheer.") case "$(($RANDOM % 2))" in 0) - annna-say -c "${channel}" '~\o/~' + annna-say -s "${server}" -c "${channel}" '~\o/~' ;; *) - annna-say -c "${channel}" '✺◟( ° ʖ °)◞✺' + annna-say -s "${server}" -c "${channel}" '✺◟( ° ʖ °)◞✺' ;; esac ;; "${botname}, be cute.") case "$(($RANDOM % 4))" in 0) - annna-say -c "${channel}" ' (\ /)' + annna-say -s "${server}" -c "${channel}" ' (\ /)' sleep 0.1 - annna-say -c "${channel}" ' (. .)' + annna-say -s "${server}" -c "${channel}" ' (. .)' sleep 0.1 - annna-say -c "${channel}" ' C(") (")' + annna-say -s "${server}" -c "${channel}" ' C(") (")' ;; 1) - annna-say -c "${channel}" ' (\-/)' + annna-say -s "${server}" -c "${channel}" ' (\-/)' sleep 0.1 - annna-say -c "${channel}" " (='.'=)" + annna-say -s "${server}" -c "${channel}" " (='.'=)" sleep 0.1 - annna-say -c "${channel}" ' (")-(")o' + annna-say -s "${server}" -c "${channel}" ' (")-(")o' ;; 2) - annna-say -c "${channel}" ' ( ) ( )' + annna-say -s "${server}" -c "${channel}" ' ( ) ( )' sleep 0.1 - annna-say -c "${channel}" ' (>•.•<)' + annna-say -s "${server}" -c "${channel}" ' (>•.•<)' sleep 0.1 - annna-say -c "${channel}" ' (") (")' + annna-say -s "${server}" -c "${channel}" ' (") (")' ;; *) - annna-say -c "${channel}" ' (\ (\' + annna-say -s "${server}" -c "${channel}" ' (\ (\' sleep 0.1 - annna-say -c "${channel}" " (=' :')" + annna-say -s "${server}" -c "${channel}" " (=' :')" sleep 0.1 - annna-say -c "${channel}" ' (, (") (")' + annna-say -s "${server}" -c "${channel}" ' (, (") (")' ;; esac ;; "${botname}, please roll a dice for me.") - annna-say -c "${channel}" "$((($RANDOM % 6) + 1))" + annna-say -s "${server}" -c "${channel}" "$((($RANDOM % 6) + 1))" ;; "${botname}, please tell me your favourite flower.") - annna-say -c "${channel}" "My favourite flower is the beer flower." + annna-say -s "${server}" -c "${channel}" "My favourite flower is the beer flower." ;; "${botname}, please tell me your favourite color.") - annna-say -c "${channel}" "My favourite color is yellow." + annna-say -s "${server}" -c "${channel}" "My favourite color is yellow." ;; "${botname}, please clap for me.") - annna-say -c "${channel}" "${user}, *clap* *clap* *clap*" + annna-say -s "${server}" -c "${channel}" "${user}, *clap* *clap* *clap*" ;; "For humanity!") - annna-say -c "${channel}" "${user}, for humanity!" + annna-say -s "${server}" -c "${channel}" "${user}, for humanity!" ;; "${botname}, please dance."|"\o/"|"\^o^/") dancemoves="$(dance-moves-gen)" - annna-say -c "${channel}" -- "${dancemoves}" + annna-say -s "${server}" -c "${channel}" -- "${dancemoves}" ;; "${botname}, please stamp this letter for me.") - annna-say -c "${channel}" -- "${user}, here: 🖃 " + annna-say -s "${server}" -c "${channel}" -- "${user}, here: 🖃 " ;; "${botname}, please dance with me.") if [ $(($RANDOM % 2)) -gt 0 ]; then - annna-say -c "${channel}" "I am not that kind of woman." + annna-say -s "${server}" -c "${channel}" "I am not that kind of woman." else - annna-say -c "${channel}" "Thank you! Let us dance! :-D" + annna-say -s "${server}" -c "${channel}" "Thank you! Let us dance! :-D" fi ;; "${botname}, please tell me who is your favourite pleasure man.") - annna-say -c "${channel}" "My favourite pleasure man is of course Gunther!" + annna-say -s "${server}" -c "${channel}" "My favourite pleasure man is of course Gunther!" ;; "${botname}, make me a sandwich"*) - annna-say -c "${channel}" "No." + annna-say -s "${server}" -c "${channel}" "No." ;; "${botname}, sudo make me a sandwich"*) - annna-say -c "${channel}" "Humans are no objects." + annna-say -s "${server}" -c "${channel}" "Humans are no objects." ;; "${botname}, please make me a sandwich"*) - annna-say -c "${channel}" "Maybe." + annna-say -s "${server}" -c "${channel}" "Maybe." ;; "${botname}, sudo please make me a sandwich"*) - annna-say -c "${channel}" "Here is your sandwich." + annna-say -s "${server}" -c "${channel}" "Here is your sandwich." ;; "${botname}, bonjour !") - annna-say -c "${channel}" "${user}, bonjour !" + annna-say -s "${server}" -c "${channel}" "${user}, bonjour !" ;; "${botname}, please give me a penis extension.") - annna-say -c "${channel}" "${user}, here: $(penis-extension)" + annna-say -s "${server}" -c "${channel}" "${user}, here: $(penis-extension)" ;; "${botname}, please pick one of: "*) pick="$(printf '%s\n' "${text}" \ @@ -795,7 +795,7 @@ case "${text}" in | tr -d ' ' \ | sort -R \ | head -n 1)" - annna-say -c "${channel}" "${user}, I think ${pick} is the best option." + annna-say -s "${server}" -c "${channel}" "${user}, I think ${pick} is the best option." ;; "${botname}, please antidepressant #"*|\ "${botname}, please amplify #"*|\ @@ -854,69 +854,69 @@ case "${text}" in if [ -s "${outpath}" ]; then - annna-say -c "${channel}" "${user}, gopher://bitreich.org/9/memecache/filter/${outfile}" + annna-say -s "${server}" -c "${channel}" "${user}, gopher://bitreich.org/9/memecache/filter/${outfile}" fi } & exit 0 ;; "${botname}, please help.") # Help Message. - # TODO: Add multiple line support to annna-say -c(1) with sleep. - annna-say -c "${user}" "»how many memes do you know?« gets you the number of memes annna knows, ${user}." + # TODO: Add multiple line support to annna-say -s "${server}" -c(1) with sleep. + annna-say -s "${server}" -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}." + annna-say -s "${server}" -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}." + annna-say -s "${server}" -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}." + annna-say -s "${server}" -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}." + annna-say -s "${server}" -c "${user}" "»please show me the load, ${user}." sleep 0.5 - annna-say -c "${user}" "»please give me the count of online users.«, ${user}." + annna-say -s "${server}" -c "${user}" "»please give me the count of online users.«, ${user}." sleep 0.5 - annna-say -c "${user}" "»please tell me your favourite flower.«, ${user}." + annna-say -s "${server}" -c "${user}" "»please tell me your favourite flower.«, ${user}." sleep 0.5 - annna-say -c "${user}" "»please tell me your favourite color.«, ${user}." + annna-say -s "${server}" -c "${user}" "»please tell me your favourite color.«, ${user}." sleep 0.5 - annna-say -c "${user}" "»please dance with me.«, ${user}." + annna-say -s "${server}" -c "${user}" "»please dance with me.«, ${user}." sleep 0.5 - annna-say -c "${user}" "»please distro-hop with me.«, ${user}." + annna-say -s "${server}" -c "${user}" "»please distro-hop with me.«, ${user}." sleep 0.5 - annna-say -c "${user}" "»please dance.«, ${user}." + annna-say -s "${server}" -c "${user}" "»please dance.«, ${user}." sleep 0.5 - annna-say -c "${user}" "»what's up?«, ${user}." + annna-say -s "${server}" -c "${user}" "»what's up?«, ${user}." sleep 0.5 - annna-say -c "${user}" "»what's down?«, ${user}." + annna-say -s "${server}" -c "${user}" "»what's down?«, ${user}." sleep 0.5 - annna-say -c "${user}" "»please update the phlog index.«, ${user}." + annna-say -s "${server}" -c "${user}" "»please update the phlog index.«, ${user}." sleep 0.5 - annna-say -c "${user}" "»sudo make me a sandwich«, ${user}." + annna-say -s "${server}" -c "${user}" "»sudo make me a sandwich«, ${user}." sleep 0.5 - annna-say -c "${user}" "»sudo please make me a sandwich«, ${user}." + annna-say -s "${server}" -c "${user}" "»sudo please make me a sandwich«, ${user}." sleep 0.5 - annna-say -c "${user}" "»please tell me who is your favourite pleasure man.«, ${user}." + annna-say -s "${server}" -c "${user}" "»please tell me who is your favourite pleasure man.«, ${user}." sleep 0.5 - annna-say -c "${user}" "»please roll a dice for me.«, ${user}." + annna-say -s "${server}" -c "${user}" "»please roll a dice for me.«, ${user}." sleep 0.5 - annna-say -c "${user}" "»I'm bored.«, ${user}." + annna-say -s "${server}" -c "${user}" "»I'm bored.«, ${user}." sleep 0.5 - annna-say -c "${user}" "», be cool.«, ${user}." + annna-say -s "${server}" -c "${user}" "», be cool.«, ${user}." sleep 0.5 - annna-say -c "${user}" "», be cute.«, ${user}." + annna-say -s "${server}" -c "${user}" "», be cute.«, ${user}." sleep 0.5 - annna-say -c "${user}" "», what is \$term?«, ${user}." + annna-say -s "${server}" -c "${user}" "», what is \$term?«, ${user}." sleep 0.5 - annna-say -c "${user}" "», please turn on \$term«, ${user}." + annna-say -s "${server}" -c "${user}" "», please turn on \$term«, ${user}." sleep 0.5 - annna-say -c "${user}" "», please shoot \$term«, ${user}." + annna-say -s "${server}" -c "${user}" "», please shoot \$term«, ${user}." sleep 0.5 - annna-say -c "${user}" "», turn me on." + annna-say -s "${server}" -c "${user}" "», turn me on." sleep 0.5 - annna-say -c "${user}" "», please tech hype me." + annna-say -s "${server}" -c "${user}" "», please tech hype me." sleep 0.5 - annna-say -c "${user}" "», bonjour !" + annna-say -s "${server}" -c "${user}" "», bonjour !" sleep 0.5 - annna-say -c "${user}" "»please help.« gives you this help listing, ${user}." + annna-say -s "${server}" -c "${user}" "»please help.« gives you this help listing, ${user}." ;; esac @@ -932,7 +932,7 @@ then tagline="$(printf "%s\n" "$(hashtags)" | grep "^${tagname} ")" tagname="$(printf "%s\n" "${tagline}" | cut -d ' ' -f 1)" taguri="$(printf "%s\n" "${tagline}" | cut -d ' ' -f 2-)" - annna-say -c "${channel}" "${tagname}: ${taguri}" + annna-say -s "${server}" -c "${channel}" "${tagname}: ${taguri}" fi case "${text}" in @@ -940,11 +940,11 @@ case "${text}" in ;; *rfc[0-9]*) rfcname="$(printf "%s\n" "${text}" | sed 's,.*\(rfc[0-9]*\).*,\1,')" - annna-say -c "${channel}" "${rfcname}: ftp://ftp.rfc-editor.org/in-notes/${rfcname}.txt" + annna-say -s "${server}" -c "${channel}" "${rfcname}: ftp://ftp.rfc-editor.org/in-notes/${rfcname}.txt" ;; *RFC[0-9]*) rfcname="$(printf "%s\n" "${text}" | sed 's,.*\(RFC[0-9]*\).*,\1,' | tr '[A-Z]' '[a-z]')" - annna-say -c "${channel}" "${rfcname}: ftp://ftp.rfc-editor.org/in-notes/${rfcname}.txt" + annna-say -s "${server}" -c "${channel}" "${rfcname}: ftp://ftp.rfc-editor.org/in-notes/${rfcname}.txt" ;; esac @@ -961,7 +961,7 @@ then taguri="${tag}" done - annna-say -c "${channel}" "${tagname}: ${taguri}" + annna-say -s "${server}" -c "${channel}" "${tagname}: ${taguri}" randomtag=$(($randomtag - 1)) done @@ -979,7 +979,7 @@ else do if tagline="$(grep "${tag} " "${hashtagfile}")"; then - annna-say -c "${channel}" "${tagline% *}: ${tagline#* }" + annna-say -s "${server}" -c "${channel}" "${tagline% *}: ${tagline#* }" fi done fi @@ -994,17 +994,17 @@ done case "${text}" in "${botname}, can you show me the uptime please?") - annna-say -c "${channel}" "$(hostname) uptime: $(uptime)" + annna-say -s "${server}" -c "${channel}" "$(hostname) uptime: $(uptime)" ;; "${botname}, please show me the load.") - annna-say -c "${channel}" "$(hostname) load: $(LANG=C uptime | sed 's,.*load average: \(.*\)$,\1,')" + annna-say -s "${server}" -c "${channel}" "$(hostname) load: $(LANG=C uptime | sed 's,.*load average: \(.*\)$,\1,')" ;; "${botname}, please give me the count of online users.") - annna-say -c "${channel}" "$(hostname): $(who -q | tail -n 1 | cut -d'=' -f 2)" + annna-say -s "${server}" -c "${channel}" "$(hostname): $(who -q | tail -n 1 | cut -d'=' -f 2)" ;; "${botname}, please update the phlog index.") phlog-index > /dev/null 2>&1 - annna-say -c "${channel}" "Thanks! Your request has been fulfilled with the quickness! :)" + annna-say -s "${server}" -c "${channel}" "Thanks! Your request has been fulfilled with the quickness! :)" ;; esac