more annna integrations - 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 07d0476fe7fa73ee472655844e32713c926288a8
DIR parent 44e764eb32b6b141d1a1b83de204fb15fceb3818
HTML Author: ben <ben@0x1bi.net>
Date: Sun, 7 Feb 2021 18:01:08 -0500
more annna integrations
Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
Diffstat:
M annna-start-services | 11 +++++++++++
A theyfightcrime | 3 +++
A whatthecommit | 3 +++
3 files changed, 17 insertions(+), 0 deletions(-)
---
DIR diff --git a/annna-start-services b/annna-start-services
@@ -186,6 +186,9 @@ annna_common() {
esac
case "${word}" in
+ "love")
+ puri="$(clippy-say "Baby don't hurt me no more!")"
+ ;;
"my horoscope")
puri="$(clippy-say "Did you mean _what's my horoscope?_?")"
;;
@@ -241,6 +244,14 @@ annna_common() {
rejection="$(girlfriend)"
annna-say -c "${channel}" "${user}, ${rejection}"
;;
+ "${botname}, who fights crime?")
+ crimefighter="$(theyfightcrime)"
+ annna-say -c "${channel}" "${crimefighter}"
+ ;;
+ "${botname}, give me a commit message")
+ commitmsg="$(whatthecommit)"
+ annna-say -c "${channel}" "${commitmsg}"
+ ;;
"${botname}, birp.")
birdname="$(bird-name)"
annna-say -c "${channel}" "${user}, I heard a ${birdname} bird."
DIR diff --git a/theyfightcrime b/theyfightcrime
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+curl -s https://theyfightcrime.org/ | grep -Eo '[^>]+They fight crime!'
DIR diff --git a/whatthecommit b/whatthecommit
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+curl -s http://whatthecommit.com/index.txt