Add n-word support to annna. - 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 e58290d413cb48ad1bd901410f76bdcf75746e22 (DIR) parent 96e3fcb53ee91f811b566fe43b04a2974af5f7c0 (HTM) Author: Annna Robert-Houdin <annna@bitreich.org> Date: Thu, 9 Sep 2021 19:07:14 +0200 Add n-word support to annna. Diffstat: M annna-message-common | 4 ++++ A n-word | 7 +++++++ 2 files changed, 11 insertions(+), 0 deletions(-) --- (DIR) diff --git a/annna-message-common b/annna-message-common @@ -354,6 +354,10 @@ case "${text}" in "${botname}, please pray for me.") annna-say -c "${channel}" "${user}, here, for you: gopher://bitreich.org/9/memecache/llaminim.mkv" ;; +"${botname}, nigger.") + nword="$(n-word)" + annna-say -c "${channel}" "${user}, don't use the ${nword}!" + ;; "${botname}, why was I breached?") breachtext="$(why-was-i-breached)" if [ -n "${breachtext}" ]; (DIR) diff --git a/n-word b/n-word @@ -0,0 +1,7 @@ +#!/bin/sh + +curl -s https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_07_04 \ + | 9 htmlfmt \ + | grep '\[ n].*word' \ + | shuf -n 1 +