Add load and sex life. - 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 00ff702cedb4c0f73b78d7f45befc1a52aaad2c8 DIR parent 57c85632af561b09b854df7fd46e309538670ad4 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Sun, 27 May 2018 21:06:28 +0200 Add load and sex life. Diffstat: M annna-start-services | 14 ++++++++++++++ 1 file changed, 14 insertions(+), 0 deletions(-) --- DIR diff --git a/annna-start-services b/annna-start-services @@ -166,6 +166,12 @@ then annna-say -c "#bitreich-en" "$outtext" fi + if [ "${text}" = "${botname}, oh hai!" ]; + then + annna-say -c "#bitreich-en" "${user}, hai! How is your sex life?" + continue; + fi + ismember=0 for member in $brmembers; do @@ -233,6 +239,12 @@ then continue; fi + if [ "${text}" = "${botname}, please show me the load." ]; + then + annna-say -c "#bitreich-en" "$(hostname) load: $(LANG=C uptime | sed 's,.*load average: \(.*\)$,\1,')" + continue; + fi + if [ "${text}" = "${botname}, please give me the count of online users." ]; then annna-say -c "#bitreich-en" "$(hostname): $(who -q | tail -n 1 | cut -d'=' -f 2)" @@ -305,6 +317,8 @@ 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}." sleep 0.5 + annna-say -c "${user}" "»please show me the load, ${user}." + sleep 0.5 annna-say -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}."