Add post-mortems support to help people in case they feel bad. - annna - Annna … | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 4382fa3a3c137fedfbe9e127ec370d1f7a5e6334 | |
parent 575ae2a0cf6a9920a8a8948e04327e0d99f13087 | |
Author: Annna Robert-Houdin <[email protected]> | |
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(-) | |
--- | |
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 i… | |
} & | |
;; | |
+ "${botname}, I feel down.") | |
+ postmortem="$(post-mortem | /br/bin/bitreich-paste)" | |
+ annna-say -c "${channel}" "${user}, do not feel bad, others ha… | |
+ ;; | |
"${botname}, birp.") | |
birdname="$(bird-name)" | |
annna-say -c "${channel}" "${user}, I heard a ${birdname} bird… | |
diff --git a/modules/post-mortems/post-mortems b/modules/post-mortems/post-mort… | |
@@ -0,0 +1 @@ | |
+Subproject commit c8882f14324ca79289fd4e6c221c79e3f716c75e | |
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 | |
+ |