Add post-mortems support to help people in case they feel bad. - 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 4382fa3a3c137fedfbe9e127ec370d1f7a5e6334
(DIR) parent 575ae2a0cf6a9920a8a8948e04327e0d99f13087
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Sat, 6 Feb 2021 23:34:21 +0100
Add post-mortems support to help people in case they feel bad.
Diffstat:
M annna-start-services | 4 ++++
A modules/post-mortems/post-mortems | 1 +
A post-mortem | 12 ++++++++++++
3 files changed, 17 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/annna-start-services b/annna-start-services
@@ -233,6 +233,10 @@ annna_common() {
flock $HOME/bin/modules/ip-art -c "./display-file.sh ip-art.ipart"
} &
;;
+ "${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}"
+ ;;
"${botname}, birp.")
birdname="$(bird-name)"
annna-say -c "${channel}" "${user}, I heard a ${birdname} bird."
(DIR) diff --git a/modules/post-mortems/post-mortems b/modules/post-mortems/post-mortems
@@ -0,0 +1 @@
+Subproject commit c8882f14324ca79289fd4e6c221c79e3f716c75e
(DIR) diff --git a/post-mortem b/post-mortem
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+# Remember to check out the git content now and then.
+#
+
+dbfile="/home/annna/bin/modules/post-mortems/post-mortems/README.md"
+
+cat $dbfile \
+ | grep '^\[' \
+ | grep ')\. ' \
+ | shuf -n 1
+