Fix annna-say for help. - 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 821f4a797dd7867fe0700edd8f5ae400706ab632 DIR parent 91d7263c59e0d51a0dcc2ddd6a6377fad91b6267 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Sat, 28 Apr 2018 16:33:19 +0200 Fix annna-say for help. * Add more gunther cases. * Add more cloudflare cases. * Fix punctuation in commands. Diffstat: M annna-say | 2 +- M annna-start-services | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) --- DIR diff --git a/annna-say b/annna-say @@ -44,7 +44,7 @@ do printf "%s\n" "$@" > "${ircpath}/in" else # Might be a user. - printf "/j %s %s\n" "$channel" "$@" > "${iibase}/in" + printf "/j %s %s\n" "$c" "$@" > "${ircbase}/in" fi done DIR diff --git a/annna-start-services b/annna-start-services @@ -48,17 +48,17 @@ then [ "$user" = "${botname}" ] && continue - if [ "${text}" = "${botname}, next please" ]; + if [ "${text}" = "${botname}, next please." ]; then /br/bin/bitreich-radio-playlist-next annna-say -c "#bitreich-radio" "You are very kind ${user}. To your command." continue; fi - if [ "${text}" = "${botname}, please help" ]; + if [ "${text}" = "${botname}, please help." ]; then - annna-say -c "${user}" "»next please« gets the playlist further, ${user}." - annna-say -c "${user}" "»please help« gives you this help listing, ${user}." + annna-say -c "${user}" "»next please.« gets the playlist further, ${user}." + annna-say -c "${user}" "»please help.« gives you this help listing, ${user}." continue; fi done @@ -94,10 +94,10 @@ then if [ -n "$urititle" ]; then case "${urititle}" in - *Gunther*) + *Gunther*|*GUNTHER*|*Günther*) annna-say -c "#bitreich-en" "Oh Gunther! ❤ ❤ ❤ ${urititle}" ;; - *Attention\ Required\!\ \|\ Cloudflare*) + *\|\ Cloudflare*) annna-say -c "#bitreich-en" "We got clownflared: gopher://bitreich.org/0/ascii/clownflare.vt" ;; *) @@ -294,7 +294,7 @@ then annna-say -c "#bitreich-en" "$outtext" fi - if [ "${text}" = "${botname}, please help" ]; + if [ "${text}" = "${botname}, please help." ]; then # TODO: Add multiple line support to annna-say -c(1) with sleep. annna-say -c "${user}" "»can you show me the uptime please?« gets you the uptime, ${user}." @@ -325,7 +325,7 @@ then sleep 0.5 annna-say -c "${user}" "», what is \$term?«, ${user}." sleep 0.5 - annna-say -c "${user}" "»please help« gives you this help listing, ${user}." + annna-say -c "${user}" "»please help.« gives you this help listing, ${user}." continue; fi done