added more annna goodness - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 36cad8a633f3dc37b4f771f982e9ff8c33c66976
(DIR) parent 7cd5d3bcb95fa1f98a221f4a00899f298e0e1764
(HTM) Author: escapeinsert <escapeinsert@0x1bi.net>
Date: Tue, 23 Feb 2021 10:37:50 -0500
added more annna goodness
Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
Diffstat:
M annna-start-services | 12 ++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/annna-start-services b/annna-start-services
@@ -238,6 +238,10 @@ annna_common() {
"${botname}, play despacito plz.")
annna-say -c "${channel}" "${user}, gopher://bitreich.org/9/memecache/despacito.mkv"
;;
+ "${botname}, give ma a Chuck Norris fact.")
+ chuck=$(chucknorris)
+ annna-say -c "${channel}" "${user}, ${chuck}"
+ ;;
"${botname}, please show me ip art.")
annna-say -c "${channel}" "${user}, please see #bitreich-tv for the magic."
{
@@ -246,6 +250,14 @@ annna_common() {
flock $HOME/bin/modules/ip-art -c "./display-file.sh ip-art.ipart"
} &
;;
+ "${botname}, I feel stupid.")
+ nuri=$(darwin)
+ tmpf=$(mktemp)
+ fetch-uri "${nuri}" > "${tmpf}"
+ curi="$(9 htmlfmt < "${tmpf}" | /br/bin/bitreich-paste)"
+ annna-say -c "${channel}" "${user}, do not feel stupid, others are stupider: ${curi}"
+ rm ${tmpf} 2>/dev/null
+ ;;
"${botname}, I feel down.")
postmortem="$(post-mortem | /br/bin/bitreich-paste)"
annna-say -c "${channel}" "${user}, do not feel bad, others had worse days: ${postmortem}"