more annna integrations - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 07d0476fe7fa73ee472655844e32713c926288a8 | |
parent 44e764eb32b6b141d1a1b83de204fb15fceb3818 | |
Author: ben <[email protected]> | |
Date: Sun, 7 Feb 2021 18:01:08 -0500 | |
more annna integrations | |
Signed-off-by: Annna Robert-Houdin <[email protected]> | |
Diffstat: | |
M annna-start-services | 11 +++++++++++ | |
A theyfightcrime | 3 +++ | |
A whatthecommit | 3 +++ | |
3 files changed, 17 insertions(+), 0 deletions(-) | |
--- | |
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… | |
diff --git a/theyfightcrime b/theyfightcrime | |
@@ -0,0 +1,3 @@ | |
+#!/bin/sh | |
+ | |
+curl -s https://theyfightcrime.org/ | grep -Eo '[^>]+They fight crime!' | |
diff --git a/whatthecommit b/whatthecommit | |
@@ -0,0 +1,3 @@ | |
+#!/bin/sh | |
+ | |
+curl -s http://whatthecommit.com/index.txt |