Move annna-say to the -c syntax in services. - 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 268d613940d5dee85d90753e1d0ae8e0b803e5b2 DIR parent 98315253d6763b544d8e180fd862bc3bf2aeb86a HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Sat, 10 Feb 2018 11:44:11 +0000 Move annna-say to the -c syntax in services. Now everything is unified! Yeah! Diffstat: M annna-start-services | 52 ++++++++++++++++---------------- 1 file changed, 26 insertions(+), 26 deletions(-) --- DIR diff --git a/annna-start-services b/annna-start-services @@ -39,14 +39,14 @@ chmod o+w "$HOME/irc/chat.freenode.net/#bitreich-radio/in" if [ "${text}" = "${botname}, next please" ]; then /br/bin/bitreich-radio-playlist-next - annna-say "#bitreich-radio" "You are very kind ${user}. To your command." + annna-say -c "#bitreich-radio" "You are very kind ${user}. To your command." continue; fi if [ "${text}" = "${botname}, please help" ]; then - annna-say "${user}" "»next please« gets the playlist further, ${user}." - annna-say "${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 @@ -72,31 +72,31 @@ chmod o+w "$HOME/irc/chat.freenode.net/#bitreich-radio/in" if [ "${text}" = "${botname}, can you show me the uptime please?" ]; then - annna-say "#bitreich-en" "$(hostname) uptime: $(uptime)" + annna-say -c "#bitreich-en" "$(hostname) uptime: $(uptime)" continue; fi if [ "${text}" = "${botname}, please give me the count of online users." ]; then - annna-say "#bitreich-en" "$(hostname): $(who -q | tail -n 1 | cut -d'=' -f 2)" + annna-say -c "#bitreich-en" "$(hostname): $(who -q | tail -n 1 | cut -d'=' -f 2)" continue; fi if [ "${text}" = "${botname}, please roll a dice for me." ]; then - annna-say "#bitreich-en" "$((($RANDOM % 6) + 1))" + annna-say -c "#bitreich-en" "$((($RANDOM % 6) + 1))" continue; fi if [ "${text}" = "${botname}, please tell me your favourite flower." ]; then - annna-say "#bitreich-en" "My favourite flower is the beer flower." + annna-say -c "#bitreich-en" "My favourite flower is the beer flower." continue; fi if [ "${text}" = "${botname}, please tell me your favourite color." ]; then - annna-say "#bitreich-en" "My favourite color is yellow." + annna-say -c "#bitreich-en" "My favourite color is yellow." continue; fi @@ -104,9 +104,9 @@ chmod o+w "$HOME/irc/chat.freenode.net/#bitreich-radio/in" then if [ $(($RANDOM % 2)) -gt 0 ]; then - annna-say "#bitreich-en" "I am not that kind of woman." + annna-say -c "#bitreich-en" "I am not that kind of woman." else - annna-say "#bitreich-en" "Thank you! Let us dance! :-D" + annna-say -c "#bitreich-en" "Thank you! Let us dance! :-D" fi continue; @@ -114,53 +114,53 @@ chmod o+w "$HOME/irc/chat.freenode.net/#bitreich-radio/in" if [ "${text}" = "${botname}, please tell me who is your favourite pleasure man." ]; then - annna-say "#bitreich-en" "My favourite pleasure man is of course Gunther!" + annna-say -c "#bitreich-en" "My favourite pleasure man is of course Gunther!" continue; fi if [ "${text}" = "${botname}, sudo make me a sandwich" ]; then - annna-say "#bitreich-en" "Humans are no objects." + annna-say -c "#bitreich-en" "Humans are no objects." continue; fi if [ "${text}" = "${botname}, sudo please make me a sandwich" ]; then - annna-say "#bitreich-en" "Here is your sandwich." + annna-say -c "#bitreich-en" "Here is your sandwich." continue; fi if [ "${text}" = "${botname}, please update the phlog index." ]; then phlog-index.sh > /dev/null 2>&1 - annna-say "#bitreich-en" "Thank you for your kind request. I have done so." + annna-say -c "#bitreich-en" "Thank you for your kind request. I have done so." continue; fi if [ "${text}" = "${botname}, please help" ]; then - # TODO: Add multiple line support to annna-say(1) with sleep. - annna-say "${user}" "»can you show me the uptime please?« gets you the uptime, ${user}." + # 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}." sleep 0.5 - annna-say "${user}" "»please give me the count of online users.«, ${user}." + annna-say -c "${user}" "»please give me the count of online users.«, ${user}." sleep 0.5 - annna-say "${user}" "»please tell me your favourite flower.«, ${user}." + annna-say -c "${user}" "»please tell me your favourite flower.«, ${user}." sleep 0.5 - annna-say "${user}" "»please tell me your favourite color.«, ${user}." + annna-say -c "${user}" "»please tell me your favourite color.«, ${user}." sleep 0.5 - annna-say "${user}" "»please dance with me.«, ${user}." + annna-say -c "${user}" "»please dance with me.«, ${user}." sleep 0.5 - annna-say "${user}" "»please update the phlog index.«, ${user}." + annna-say -c "${user}" "»please update the phlog index.«, ${user}." sleep 0.5 - annna-say "${user}" "»sudo make me a sandwich«, ${user}." + annna-say -c "${user}" "»sudo make me a sandwich«, ${user}." sleep 0.5 - annna-say "${user}" "»sudo please make me a sandwich«, ${user}." + annna-say -c "${user}" "»sudo please make me a sandwich«, ${user}." sleep 0.5 - annna-say "${user}" "»please tell me who is your favourite pleasure man.«, ${user}." + annna-say -c "${user}" "»please tell me who is your favourite pleasure man.«, ${user}." sleep 0.5 - annna-say "${user}" "»please roll a dice for me.«, ${user}." + annna-say -c "${user}" "»please roll a dice for me.«, ${user}." sleep 0.5 - annna-say "${user}" "»please help« gives you this help listing, ${user}." + annna-say -c "${user}" "»please help« gives you this help listing, ${user}." continue; fi done